Skip to content

Latest commit

 

History

History
98 lines (47 loc) · 2.57 KB

tray.md

File metadata and controls

98 lines (47 loc) · 2.57 KB

DiffEngineTray

DiffEngineTray sits in the Windows tray. For supported snapshot testing libraries, it monitors pending changes in snapshots, and provides a mechanism for accepting those changes. It is intended as a alternative to using the clipboard as an approval mechanism.

NuGet package

Installation

dotnet tool install -g DiffEngineTray

Running

Run diffenginetray in a console to start the app.

UI

Grouping

Moves and deletes will be grouped by the containing solution. In the above, the files exist in DiffEngine, so the they are grouped under it.

Moves

"Pending Moves" will accept the changes to file3 and file4.

Clicking "file3" or "file4" will accept the changes to file3 or file4 respectively. The drop down will expose extra actions for that change.

Deletes

A test can produce multiple resulting snapshots. If the accepted versions has a different number of snapshots to the current test run, then some of those snapshots need to be deleted. The delete functionality in the tray tool handles this scenario.

"Pending Deletes" will delete file1 and file2.

Clicking "file1" or "file2" will delete file1 or file2 respectively. The drop down will expose extra actions for that change.

Accept all

"Accept all" will accept all pending moves and all pending deletes.

Clear

Clear will clear all currently tracked items.

Options

Run at startup

Runs DiffEngineTray at system startup.

Accept all HotKey

Registers a system wide HotKey to accept pending:

  • Deletes
  • Moves

Accept all open HotKey

Registers a system wide HotKey to accept pending:

  • Deletes
  • Moves that are currently open in a diff tool

To limit impact on system resources, the default max concurrent open tool instances is limited to 5.

Accept all open HotKey allows the current batch of open diffs to be accepted.

Currently supported in