Manages launching and cleanup of diff tools
Перейти к файлу
Simon Cropp 99b68cea2a MarkdownSnippets 2020-08-22 10:18:24 +10:00
.github MarkdownSnippets 2020-08-22 10:18:24 +10:00
docs Docs changes 2020-08-18 03:01:30 +00:00
src MarkdownSnippets 2020-08-22 10:18:24 +10:00
.gitattributes . 2020-04-11 12:30:06 +10:00
.gitignore add support for gitlab and myget 2020-07-10 20:06:38 +10:00
code_of_conduct.md . 2020-07-25 09:59:36 +10:00
license.txt Update license.txt 2020-07-25 08:59:34 +10:00
readme.md Docs changes 2020-08-18 03:01:30 +00:00
readme.source.md docs 2020-07-26 11:53:39 +10:00

readme.md

DiffEngine

Build 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:

Support is available via Tidelift.


Part of the .NET Foundation

Contents

NuGet package

Supported Tools

Launching a tool

A tool can be launched using the following:

DiffRunner.Launch(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.

Security contact information

To report a security vulnerability, use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

Icon

Engine designed by Eucalyp from The Noun Project.