VerifyTests / DiffEngine

Manages launching and cleanup of diff tools
MIT License
190 stars 28 forks source link

Upgrading 24.2.0 to 25.0.2 makes P4Merge compare texts three-way #497

Closed TymurGubayev closed 5 months ago

TymurGubayev commented 5 months ago

Describe the bug

This is how my tests look like, in a public class SomeTests : VerifyBase:

var newText = GetNewText(); //this is what I want to test

var settings = new VerifySettings();
settings.UseDirectory($"./TestProjects/");
settings.UseFileName(fileName);
await Verify(newText, extension: "txt", settings: settings).ConfigureAwait(false);

with an accompaning ModuleInitializer for the VerifyDiffPlex.

VerifyDiffPlex.Initialize(VerifyTests.DiffPlex.OutputType.Compact);

I have P4Merge installed. Up until Verify.MSTest nuget package version 24.2.0, the diff tool opens in two-way mode, pressing "escape" closes it without any prompt. Starting with version 25.0.0 (and no other changes), the same tool opens in threee-way mode, and when I press "escape" it asks me if I want to save changes.