Get file names in custom comparer #1456
|
We have created a custom comparer for running custom verification logic for a specific file extension VerifierSettings.RegisterStreamComparer(
"custom",
(received, verified, _) => CustomComparer.Compare(received, verified)
);The custom comparer converts the received and verified files to two other files and then compares these generated files. Is it possible to get the filename of the received or verified file in the context of the custom comparer to allow us to output the generated files in a sane location? All input is much appreciated! |
Replies: 1 comment 3 replies
the file paths and content of the received and verified is already outputted on failure |
is there some reason you are splitting files using a comparer instead of a converter?
https://github.com/VerifyTests/Verify/blob/main/docs/converter.md