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

Allure reports not generating after upgrading allure version from 2.8.1 to 2.9.4

Open sonamkuk opened this issue 3 years ago • 2 comments
trafficstars

I'm submitting a ...

  • [x] bug report
  • [ ] feature request
  • [ ] support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

I am working on generating allure reports with Marathon library for my Espresso automation test to embedd screenshots in the report. The test reports were generating fine with screenshots for below configuration Allure-gradle @2.8.1 Marathon-gradle plugin @0.6.2 Gradle 6.0

Since we migrated to Gradle 7.0 and we had open issues of multiple getters with allure-gradle version 2.8.1, so I upgraded allure-gradle version from 2.8.1 to 2.9.4 but I was not able to make this reports generate with current configuration. When tried with running it with warning mode - ./gradlew allureReport --warning-mode=all I am getting below error: image

Resolution of the configuration :allureRawResultDirs was attempted from a context different than the project context. Have a look at the documentation to understand why this is a problem and how it can be resolved. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. See

allure-results are generating under marathon reports but allure reports are not getting generated

What is the expected behavior?

Allure reports should generate under app/build/reports/allure-report

Please tell us about your environment:

Allure version 2.2.0
Test framework junit4
Allure 2.13.9
Generate report using [email protected]

allure { report { version.set("2.13.9") reportDir.file(project.rootDir.absolutePath+"/app/build/reports/allure-report") } }

Other information

sonamkuk avatar Mar 09 '22 15:03 sonamkuk

This looks like a Gradle issue to me.

The relevant line is https://github.com/allure-framework/allure-gradle/blob/dd789d04c6aaef913c60f0e114c6ca7f93beba05/allure-adapter-plugin/src/main/kotlin/io/qameta/allure/gradle/adapter/AllureAdapterBasePlugin.kt#L72

vlsi avatar Sep 11 '22 09:09 vlsi

have the same issue, any workaround for this?

carlos-vargas-pplus avatar Sep 20 '22 16:09 carlos-vargas-pplus