snapshooter
snapshooter copied to clipboard
Mismatch error output not well formatted
The error message of the snapshot mismatch exception is not really readable, especially if you have large files.
The goal shall be to see the line number and the position for each mismatch within the comparison.
@nscheibe What do you think of this output for XUnit?
This looks much better! Which compare util is it?
This would be awesome. We use Snapshooter to test our GraphQL API, so the output is JSON, and the default error message is really opaque in our CI builds. It might look like:
Assert.Equal() Failure
↓ (pos 32)
Expected: ···{\n "inviteUser": {\n "email": "[email protected]"\n ···
Actual: ···{\n "inviteUser": null\n },\n "Extensions": {},\n "Errors":···
Are there any plans to let us expand this output a bit?