-
Notifications
You must be signed in to change notification settings - Fork 9
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
Class org.assertj.core.error.AssertJMultipleFailuresError declares multiple JSON fields named heading - Cucumber + SoftAssertions #37
Comments
The issue has also been raised here: https://stackoverflow.com/questions/77856505/class-org-assertj-core-error-assertjmultiplefailureserror-declares-multiple-json |
This seems to be due to the json formatter report generation. Can you give it a try by setting the extent.reporter.json.start configuration to false. Can you raise this issue in the extent report repo - https://github.com/extent-framework/extentreports-java/issues. |
Thank you for looking into this so quickly. As suggested, the issue is raised here: extent-framework/extentreports-java#424 I can try your suggestion when I'm again with the other laptop where my code is. |
Hi
Hi again, I've just tried your suggestion and it seems to fix the issue:
I'll comment the same on the other issue I've created. Should I close both issues now? |
Also, if you'd like to add this as an answer to Stack Overflow, I can accept that. |
You can close the issue here but the other one is valid which needs to be investigated. Setting the json reporter to false is a workaround at best and will not work for users who need that report. This needs to be fixed in the main extent report code, to which I do not have direct commit access. Just a shot in the dark but it may be due to java 17 because as far as I know extent code has been tested till java 11. |
Thank you. I'll close it. |
We keep getting this error in our cucumber tests.
It seems to be related to Gson and or Assert Core when using SoftAssertions. We don't use Gson directly in our tests, but it comes as a transitive dependency and when trying to exclude it, I would be getting other errors and the tests won't run.
This is a sample for how we are doing the assertions:
Tried with the latest versions for Spring Boot, Cucumber and ExtentReports,
but the error still persists:
Thank you very much.
The text was updated successfully, but these errors were encountered: