• Stars
    star
    138
  • Rank 264,508 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Manages launching and cleanup of diff tools

DiffEngine

Discussions Build status NuGet Status NuGet Status

DiffEngine manages launching and cleanup of diff tools. It is designed to be used by any Snapshot/Approval testing library.

Currently used by:

Contents

NuGet package

Supported Tools

Launching a tool

A tool can be launched using the following:

await DiffRunner.LaunchAsync(tempFile, targetFile);

snippet source | anchor

Note that this method will respect the above difference behavior in terms of Auto refresh and MDI behaviors.

Closing a tool

A tool can be closed using the following:

DiffRunner.Kill(file1, file2);

snippet source | anchor

Note that this method will respect the above difference behavior in terms of MDI behavior.

File type detection

DiffEngine use EmptyFiles to determine if a given file or extension is a binary or text. Custom extensions can be added, or existing ones changed.

BuildServerDetector

BuildServerDetector.Detected returns true if the current code is running on a build/CI server.

Supports:

Disable for a machine/process

Set an environment variable DiffEngine_Disabled with the value true.

Disable in code

DiffRunner.Disabled = true;

Icons

Game designed by Andrejs Kirma from The Noun Project.

Tray icons from LineIcons.

More Repositories

1

Verify

Verify is a snapshot tool that simplifies the assertion of complex data models and documents.
C#
1,983
star
2

Verify.EntityFramework

Extends Verify to allow verification of EntityFramework bits.
C#
47
star
3

Verify.SourceGenerators

Extends Verify to allow verification of C# Source Generators.
C#
37
star
4

EmptyFiles

A collection of minimal binary files.
C#
30
star
5

Verify.Terminal

A dotnet tool for managing Verify snapshots.
C#
30
star
6

Verify.Blazor

Support for rendering a Blazor Component to a verified file via bunit or raw Blazor rendering.
C#
26
star
7

Verify.Xaml

Extends Verify to allow verification of Xaml UIs
C#
19
star
8

Verify.Avalonia

Extends Verify to allow verification of Avalonia UIs
C#
19
star
9

Verify.HeadlessBrowsers

Extends Verify to allow verification of Web UIs using Selenium, Playwright, or Puppeteer
C#
17
star
10

Verify.Http

Extends Verify to allow verification of web bits.
C#
17
star
11

Verify.SqlServer

Extends Verify to allow verification of SqlServer bits.
C#
13
star
12

Verify.Moq

Adds Verify support for verifying Moq types.
C#
12
star
13

Verify.Go

Verify.Go is a snapshot tool for Go language that simplifies the assertion of complex data models and documents.
Go
11
star
14

Verify.QuestPDF

C#
9
star
15

Verify.MassTransit

Adds Verify support for MassTransit test helpers.
C#
9
star
16

Verify.DocNet

Extends Verify to allow verification of documents via DocNet.
C#
9
star
17

Verify.Wolverine

Adds Verify support for verifying Wolverine via a custom test context.
C#
8
star
18

Verify.ImageSharp

Extends Verify to allow verification of documents via ImageSharp.
C#
8
star
19

Verify.ZeroLog

Extends Verify to allow verification of ZeroLog bits.
C#
6
star
20

Verify.PdfPig

Extends Verify to allow verification of documents via PdfPig
C#
6
star
21

Verify.AngleSharp

Extends Verify to allow comparison of html files via AngleSharp.
C#
6
star
22

Verify.DiffPlex

Extends Verify to allow comparison of text via DiffPlex.
C#
6
star
23

Verify.ICSharpCode.Decompiler

Extends Verify to allow verification of assemblies via ICSharpCode.Decompiler
C#
6
star
24

Verify.Aspose

Extends Verify to allow verification of documents via Aspose.
C#
5
star
25

Verify.ImageHash

C#
5
star
26

Verify.ImageMagick

Extends Verify to allow verification of documents via ImageMagick.NET.
C#
5
star
27

Verify.WinForms

Extends Verify to allow verification of WinForms UIs.
C#
5
star
28

Verify.NServiceBus

Adds Verify (https://github.com/VerifyTests/Verify) support to verify NServiceBus Test Contexts
C#
4
star
29

Verify.Phash

Extends Verify to allow comparison of documents via Phash.
C#
4
star
30

Verify.MicrosoftLogging

C#
4
star
31

Verify.Xamarin

Extends Verify to allow verification of Xamarin UIs.
C#
4
star
32

Verify.ImageSharp.Compare

Extends Verify to allow comparison of images via ImageSharp.Compare.
C#
4
star
33

Verify.Sample

C#
3
star
34

Verify.Quibble

Extends Verify to allow comparison of text via Quibble.
C#
3
star
35

Verify.Syncfusion

Extends Verify to allow verification of documents via Syncfusion File Formats.
C#
3
star
36

Verify.RavenDB

Extends Verify to allow verification of RavenDB bits.
C#
3
star
37

Verify.NodaTime

Adds Verify support for scrubbing NodaTime values.
C#
3
star
38

Verify.Cosmos

C#
2
star
39

Verify.FakeItEasy

Adds Verify support for verifying FakeItEasy types.
C#
2
star
40

Verify.AspNetCore

C#
2
star
41

Verify.Brighter

Adds Verify support for verifying Brighter.
C#
2
star
42

Verify.NewtonsoftJson

C#
1
star
43

Verify.CommunityToolkit.Mvvm

Extends Verify to allow verification of CommunityToolkit.Mvvm.
C#
1
star
44

BlazorVerifyExperiments

HTML
1
star
45

Verify.GrapeCity

Extends Verify to allow verification of documents via GrapeCity Documents.
C#
1
star
46

Discussions

GitHub Discussions for VerifyTests
1
star
47

Verify.SystemJson

Adds Verify support for converting System.Text.Json types
C#
1
star