Compare a file in a dir with the similar file in a different dir recursively.
Closed this issue · 1 comments
HimaBGadupudi commented
Hi,
I am trying to use snapshot testing to compare two yaml files in different dirs. One of the file is created by a test class and the other one is present in our repo.
var file1 = File.ReadAllText("../../../../../file1.yaml");
Directory.SetCurrentDirectory("../../../../../");
var file2 = File.ReadAllText("file2.yaml");
await Verifier.Verify(file1).UseTextForParameters(file2).
The above few lines code is the simple code I am trying with first. File2 is a nested deep yaml file.
I am learning how to use verify now and trying to use to compare two deeply nested yaml files. Is this even possible?
HimaBGadupudi commented
I was able to use verify.diffplex plugin to compare the files.