Manages launching and cleanup of diff tools
Перейти к файлу
Simon 0a4f3dc1a6 Merge branch 'main' into TrayIcon-Promoted 2023-08-02 11:30:58 +10:00
.github
docs docs 2023-08-01 11:50:40 +10:00
src Merge branch 'main' into TrayIcon-Promoted 2023-08-02 11:30:58 +10:00
.gitattributes Update .gitattributes 2023-05-13 19:19:27 +10:00
.gitignore
appveyor.yml Update appveyor.yml 2023-02-19 23:32:02 +11:00
code_of_conduct.md
license.txt
readme.md Remove CodeCompare suppot (#370) 2023-07-09 20:40:30 +10:00
readme.source.md docs 2023-02-10 09:27:44 +11:00

readme.md

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.