Manages launching and cleanup of diff tools
Перейти к файлу
Simon Cropp cd84734151 GitHubSync update - main 2023-02-04 12:34:27 +11:00
.github Update merge-dependabot.yml 2022-08-17 14:39:50 +10:00
docs cleanup 2022-12-29 10:23:06 +11:00
src GitHubSync update - main 2023-02-04 12:34:27 +11:00
.gitattributes fix newlines 2022-08-24 13:44:03 +10:00
.gitignore cleanup 2022-03-04 10:33:01 +11:00
appveyor.yml update ProjectDefaults 2022-08-09 20:10:22 +10:00
code_of_conduct.md . 2020-07-25 09:59:36 +10:00
license.txt Docs changes 2022-03-18 23:25:00 +00:00
readme.md Docs changes 2022-12-11 10:08:11 +00:00
readme.source.md . 2022-12-11 21:06:48 +11:00

readme.md

DiffEngine

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.