-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Every retried test results are added to log.json file, instead of the final status of the execution #827
Comments
This is a known issue with the json formatter, reported here. |
Since no one seem eager to fix the bug on the cucumber-json-formatter, could the work around be to not emit messages that are about failed attempt? In our use case we wouldn't care if something was retried as long as it eventually passed. |
I'm facing the same issue. Any work around yet? |
Changing messages is out of the questions, as they're just as much a report as the JSON report. The only acceptable workaround in my eyes is to rewrite it myself, ref. #870. |
I have written a primitive, workaround function. It should be called before reporting. I have put it at the top of my cucumber-html-reporter.js. function deleteDuplicateTests() { |
Thanks for sharing |
Current behavior
If we set a retry value on Cypress config and the test case fails, every test execution is added to JSON report.
Desired behavior
Only the last execution should be included in the JSON report. Please see Cypress Retry documentation. Cypress is also adding the final status to its report at the end of the execution. Especially, it is important to skip failures, which were passed after the following reruns.
Test code to reproduce
Steps to reproduce:
See the shortened log.json file (Tes execution with 1 retry):
[
.
.
]
Versions
The text was updated successfully, but these errors were encountered: