allure-java
allure-java copied to clipboard
AllureCucumber4Jvm does not recognise rerun scenarios
Describe the bug
AllureCucumber4Jvm does not recognise rerun scenarios. The uuid caching of the scenario means that reruns replace the test result of the original run. The breaks the Allure "Retries" and "Flaky" features.
To Reproduce Steps to reproduce the behavior:
- Run cucumber tests using a test runner that can retry (e.g. TestNG)
- Have one or more tests that fail and retry
- Allure report shows only one test result for the flaky scenario
Expected behavior All test runs visible in the Allure report
Screenshots
Expected behaviour:

Actual behaviour:

Desktop (please complete the following information):
- OS: Windows
- Browser: Firefox
- Version: allure-cucumber4-jvm:2.17.3
I have a code fix for this, just creating the issue to tag in the PR 🙂
retries work as expected, tested with the latest release (Allure 2.26.0, Maven + JUnit Platform + CucumberJVM 7)