CucumberExtentReporter
CucumberExtentReporter copied to clipboard
Merge multiple test reports
Hi author,
Thanks so much for your great plugin. I am running Cucumber tests with Maven+Surefire+Junit combination in parallel mode. Each test class will generate a test report. Do you have any advice how I can merge all these reports? Otherwise, I am wondering if any setting allows me to append test report to existing file.
If you leave the report name same, you should be getting the merged report at the end I believe. Could you please try giving the same report name and let me know how it goes?
Of course I tried. The report would be overwritten by the last ended test class.
@email2vimalraj hi mate, do you get a time to look into this issue?
@jun1983 : Can you try updating to the latest version 3.0.0 and see if the issue still exists?
@email2vimalraj I have not tried. But I would say this might not work. I looked into some of the extentreport source code. When appending to an existing report file, it reverts the report file to test data list at the "beginning" of the new test. This means, if we run 3 tests in parallel, each one will have the same pre-existing test data, and then overwrite each other when generating report. Many thanks to your support and appreciate if you can help me out with this problem. Otherwise, to get a complete report with this plugin, I can only change it to sequence mode.
+1
@jun1983: I guess this is already taken care. I've tested executing in parallel using TestNG and working as expected. Kindly refer this: https://github.com/email2vimalraj/CucumberExtentReporter/blob/master/src/test/resources/suite.xml.
https://github.com/HammadHost/issue46_merge_multiple_test_reports
I have created poc to show that multiple reports are being generated in case of cucumber jvm parallel plugin
And this is relevant I think: https://github.com/temyers/cucumber-jvm-parallel-plugin/issues/127
@email2vimalraj Any update on this issue. It would be a huge help.