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

[feature] diffs in failures #181

Open
ngarbezza opened this issue Dec 30, 2020 · 0 comments
Open

[feature] diffs in failures #181

ngarbezza opened this issue Dec 30, 2020 · 0 comments
Labels
✨ dx ✨ improve developer experience enhancement New feature or request

Comments

@ngarbezza
Copy link
Owner

Is your feature request related to a problem? Please describe.
When an assertion fails, we got a message explaining the problem. But sometimes, this is not enough or it is hard to spot where the problem is, because the message is one line mostly with toString() applied to the involved objects, and printed in a single line.

Describe the solution you'd like
A new setting, called "failureDiffs", that when enabled, displays after the test failure and the message, a new section called "diff", with the actual and expected values colored where the differences are, pretty much like git diffs, but can be less sophisticated.

Additional context
We prefer simplicity over introducing a new dependency. As it needs to remain cross platform, do not rely on OS diff commands. Any important decision made during this feature has to be tracked using an Architecture Decision Record.

@ngarbezza ngarbezza added the enhancement New feature or request label Dec 30, 2020
@ngarbezza ngarbezza self-assigned this Dec 30, 2020
@ngarbezza ngarbezza added the ✨ dx ✨ improve developer experience label Mar 21, 2024
@ngarbezza ngarbezza removed their assignment Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ dx ✨ improve developer experience enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant