VerifyTests / Verify

Verify is a snapshot tool that simplifies the assertion of complex data models and documents.
MIT License
2.47k stars 138 forks source link

Add comparison link into test output for easy diff in Rider. #1260

Closed mfilippov closed 3 weeks ago

mfilippov commented 1 month ago

Is the feature request related to a problem

Add support open diff by link in Rider

Describe the solution

If you will write text in text output which matched this regex:

".*Compare\\(Rider\\):?\\s?=?\\s?“?\"(.+)\",\"(.+)\"”?"

like: Compare(Rider): "file:///actualFilePath","file:///expectedFilePath"

I think it is better that open diff for problem automatically.

SimonCropp commented 1 month ago

I think it is better that open diff for problem automatically.

are you saying you would prefer that the rider diff did not open automatically

mfilippov commented 1 month ago

Yes. Open diff from output windows it is better experience from my opinion.

SimonCropp commented 1 month ago

are other diff tools supported? eg

Compare(BeyondCompare): "file:///actualFilePath","file:///expectedFilePath"

where is this feature documented?

mfilippov commented 2 weeks ago

@SimonCropp No, on both questions. It is internal functionality. We use it in our test framework. I hope we could add info about it into documentation.