snapshooter icon indicating copy to clipboard operation
snapshooter copied to clipboard

Mismatch error output not well formatted

Open nscheibe opened this issue 5 years ago • 3 comments

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 avatar Apr 09 '19 07:04 nscheibe

@nscheibe What do you think of this output for XUnit?

image

RohrerF avatar Oct 04 '20 16:10 RohrerF

This looks much better! Which compare util is it?

nscheibe avatar Oct 04 '20 20:10 nscheibe

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?

PrimeHydra avatar Apr 21 '21 22:04 PrimeHydra