allure-framework/allure-java

Duplicated test results in the report

Sharmi34 opened this issue · 2 comments

Getting duplicated test results for allure-cucumber when allure-junit is used

Steps to reproduce the behavior:I

  1. Add both allure-junit5 and allure-cucumber7-jvm maven dependency in pom.xml
  2. Use maven-failsafe-plugin for integration test (uses cucumber bdd)
  3. Run mvn clean verify
  4. Duplicated results will be generated in allure report (one by allure-cucumber7-jvm and one by allure-junit5)

image

My investigation is that as the cucumber uses junit runner , when we add allure-junit5 dependency - that also run the cucumber test case.

hi @Sharmi34
this is actually correct behaviour.
You need to exclude junit5 dependency

baev commented

Fixed via #947