How do I remove some of the test results from Allure Report? #2866
-
I am using a Cucumber and TestNG-based framework with Gradle as the build tool, and I use io.qameta.allure:allure-cucumber7-jvm to generate Allure reports. I execute the Cucumber tests using a testng.xml file. However, the generated Allure report contains duplicate test results: one set generated via TestNG and another set generated via the Cucumber feature files. I want to display only the test results based on the Cucumber feature files and exclude the TestNG-based test results. I am not using any TestNG annotations in my code, only Cucumber-based annotations. Is there a way to remove the TestNG-based results from the report during execution? I am using: Cucumber: 7.10.0 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Could you please specify the version of |
Beta Was this translation helpful? Give feedback.
-
Hi baev, able to remove the testng based test results from allure report using gradle task.
thank you. |
Beta Was this translation helpful? Give feedback.
-
Hi baev, using the following versions: I’m observing the following issue with the Gradle task mentioned above: the last test is being removed from the Allure report after the task runs. This is causing the final scenario in my test suite to be excluded from the report. any idea on how to resolve this? |
Beta Was this translation helpful? Give feedback.
-
@baev - The last test run results.json file contains both cucumber and testng results in the same json. is this a bug? |
Beta Was this translation helpful? Give feedback.
-
@baev - By setting autoconfigure to true and updating the Allure version to 2.29.1 (as mentioned here), the last test run getting removed from Allure report is resolved and the report displays only Cucumber-based test results. thank you. |
Beta Was this translation helpful? Give feedback.
@baev - By setting autoconfigure to true and updating the Allure version to 2.29.1 (as mentioned here), the last test run getting removed from Allure report is resolved and the report displays only Cucumber-based test results. thank you.