Manages launching and cleanup of diff tools
Перейти к файлу
Simon e9f5634eaf remove bin directories from vscode scanning 2022-08-10 15:19:51 +10:00
.github Update FUNDING.yml 2022-01-24 18:01:45 +11:00
docs remove bin directories from vscode scanning 2022-08-10 15:19:51 +10:00
src remove bin directories from vscode scanning 2022-08-10 15:19:51 +10:00
.gitattributes . 2022-03-19 10:24:01 +11: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 fix tool linux support 2022-03-31 07:27:39 +11:00
readme.source.md cleanup 2022-02-08 13:06:56 +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.

Icons

Game designed by Andrejs Kirma from The Noun Project.

Tray icons from LineIcons.