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

Support of <Click to see difference> in Intellij #1882

Open
Nikita-Guchakov opened this issue Dec 21, 2024 · 2 comments
Open

Support of <Click to see difference> in Intellij #1882

Nikita-Guchakov opened this issue Dec 21, 2024 · 2 comments
Assignees
Milestone

Comments

@Nikita-Guchakov
Copy link

Nikita-Guchakov commented Dec 21, 2024

Hi, currently IDEs won't show if Atrium assertion fails

   expect(actual).toEqual(expected)
image

That makes test failures with large comparing objects annoying check.

To fix that that you can move to throwing AssertionFailedError from the https://github.com/ota4j-team/opentest4j JUnit initiative instead of AtriumError (or maybe just extend AtriumError from it, haven't check Atrium internals)
like many other assertion libraries already do (junit, assertj, assertk, strikt, kotest, kotlintest, etc).

image
@robstoll robstoll changed the title Support of <Show Difference> at IDEs Support of <Click to see difference> in Intellij Dec 21, 2024
@robstoll
Copy link
Owner

Thanks for the report.
TL;DR Atrium v1.3.0 will include it

Your feedback would be valuable here:
robstoll/atrium-roadmap#39 (comment)

I'll keep this one open so that others see it as well

@robstoll robstoll self-assigned this Dec 27, 2024
@robstoll robstoll added this to the 1.3.0 milestone Dec 27, 2024
@robstoll
Copy link
Owner

robstoll commented Dec 29, 2024

I have released v1.3.0-alpha-1 which includes a click to see difference link
https://github.com/robstoll/atrium/releases/tag/v1.3.0-alpha-1

Please try it out and give feedback, especially if you should find bugs or if something seems odd in reporting. Thanks

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

No branches or pull requests

2 participants