Skip to content
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

Duplicate scenario in Allure report #278

Closed
IlyasPatel opened this issue Nov 22, 2018 · 1 comment
Closed

Duplicate scenario in Allure report #278

IlyasPatel opened this issue Nov 22, 2018 · 1 comment
Labels
theme:cucumber-jvm CucumberJVM related issue type:bug Something isn't working work:backlog No work on this issue at the moment

Comments

@IlyasPatel
Copy link

Here is a sample project which replicates the issue, duplicate scenario names appear in the final Allure report:

https://github.com/IlyasPatel/stackoverflow-gradle-cucumber-allure

The Allure_Report_Duplicate.png displays the problem.

It started to happen when I added 'io.qameta.allure:allure-junit4:2.8.1' dependency. When I remove this, I don't get duplicates but I do get a NullPointerException and the build fails.

@baev baev transferred this issue from allure-framework/allure-cucumberjvm Nov 22, 2018
@baev baev added type:bug Something isn't working work:backlog No work on this issue at the moment theme:cucumber-jvm CucumberJVM related issue labels Nov 22, 2018
@baev
Copy link
Member

baev commented Dec 14, 2018

Actually, the main problem of NPE is because allure-gradle is not working correctly with cucumber-jvm. Here is the fix submitted allure-framework/allure-gradle#28

The workaround now is disable autoconfigure feature for Allure Gradle plugin. The correct configuration is:

allure {
    autoconfigure = false
    aspectjweaver = true
    version = '2.8.1'
    downloadLink = 'https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.8.1/allure-commandline-2.8.1.zip'
}

dependencies {
    compile 'io.cucumber:cucumber-java:3.0.2'
    compile 'io.cucumber:cucumber-junit:3.0.2'
    compile 'io.qameta.allure:allure-cucumber3-jvm:2.8.1'

}

NOTE:

  • autoconfigure = false is needed to prevent NPE
  • aspectjweaver = true to enable support of @Step and @Attachment annotations
  • version = '2.8.1' - latest Allure version
  • downloadLink is needed because latest version of Allure available only in maven central, but Allure Gradle is not updated yet.

@baev baev closed this as completed Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:cucumber-jvm CucumberJVM related issue type:bug Something isn't working work:backlog No work on this issue at the moment
Projects
None yet
Development

No branches or pull requests

2 participants