-
Notifications
You must be signed in to change notification settings - Fork 115
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
JUnit 5 Assert Equals Comparison Failure In IntelliJ Is Not Displayed #501
Comments
This old issue seems to suggest the IntelliJ comparison failure used to work with jsonunit. |
I am using |
That's bizarre... Here's my full output:
Is your stacktrace the same as mine? What does your gradle build file look like? Thanks |
You can check-out the code and add the test here |
I think this might be a gradle nuance. If you open the gradle project in the fork I've made and run the https://github.com/bensullivan-ag/JsonUnitIntelliJDiffIssue/tree/master/tests/test-base-gradle Thanks Ben |
Hi, it should be a issue in the IDEA instead of the JsonUnit. |
Makes sense, thanks a lot for investigation |
Hi
I am using AssertJ variant on latest version of JsonUnit in IntelliJ 2021.3.3, Java 11:
This test with a jsonunit assertion does not display the IntelliJ assert equals comparison failure:
Output:
But this junit assertion does:
Output:
We'd really like to have the comparison failure (available by clicking the
<Click to see difference>
link in test output) in the IDE as it helps triage the failures with better context for larger json objects.Is there any way to achieve this?
Ideally it would be great to have both the jsonunit error, which is more descriptive than the junit equivalent, and the link the IntelliJ comparison failure.
Thanks!
Ben
The text was updated successfully, but these errors were encountered: