Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying a diff when the assert fails #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aaronpowell
Copy link
Contributor

Summary of the changes (Less than 80 chars)

Generate a diff between the expected/actual snapshot and displaying that on failure.

Addresses #136

Added a dependency on DiffPlex and changed the IAssert implementations so that when they fail, a diff is generated from the expected/actual and then that is used in the output. This makes it easier to see where there are problems between the two snapshots.

This addresses SwissLife-OSS#136
@SimonCropp
Copy link
Contributor

note that https://github.com/VerifyTests/DiffEngine is designed to handle opening diffs for many snapshotting libs

@mlstubblefield
Copy link

It'd be awesome if this could be part of the library!

@SimonCropp
Copy link
Contributor

@mlstubblefield or you could move to https://github.com/VerifyTests/Verify 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants