allure-java icon indicating copy to clipboard operation
allure-java copied to clipboard

AllureCucumber4Jvm does not recognise rerun scenarios

Open Hamzaan-Bridle opened this issue 3 years ago • 1 comments

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:

  1. Run cucumber tests using a test runner that can retry (e.g. TestNG)
  2. Have one or more tests that fail and retry
  3. Allure report shows only one test result for the flaky scenario

Expected behavior All test runs visible in the Allure report

Screenshots Expected behaviour: Expected

Actual behaviour: Actual

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox
  • Version: allure-cucumber4-jvm:2.17.3

Hamzaan-Bridle avatar Mar 04 '22 10:03 Hamzaan-Bridle

I have a code fix for this, just creating the issue to tag in the PR 🙂

Hamzaan-Bridle avatar Mar 04 '22 10:03 Hamzaan-Bridle

retries work as expected, tested with the latest release (Allure 2.26.0, Maven + JUnit Platform + CucumberJVM 7)

baev avatar Mar 18 '24 14:03 baev