Open arvinder06 opened 2 years ago
Hi... What u r trying to achieve is not possible with the current code. The adapter code will need to be considerably modified to only keep the latest test details.
U can use the rerun plugin of cucumber to further process failed scenarios -> https://github.com/cucumber/cucumber-jvm/blob/main/core/src/main/java/io/cucumber/core/plugin/RerunFormatter.java. U can generate merged reports by referring to this article - https://ghchirp.tech/2882/. U will need extra runner to for this technique.
I am using org.testng Interface IRetryAnalyzer to retry the failed scenarios. I am able to remove the scenarios from testng context, however, the extent report still shows all the entries for retried scenarios:
Test runner sample code:
How can I remove the entry for retried scenarios in the final report and have only one (latest) entry of the test case in the report. I am using 2.8.1