CucumberExtentReporter icon indicating copy to clipboard operation
CucumberExtentReporter copied to clipboard

Merge multiple test reports

Open jun1983 opened this issue 7 years ago • 9 comments

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.

jun1983 avatar Apr 20 '17 03:04 jun1983

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?

email2vimalraj avatar May 07 '17 03:05 email2vimalraj

Of course I tried. The report would be overwritten by the last ended test class.

jun1983 avatar May 07 '17 03:05 jun1983

@email2vimalraj hi mate, do you get a time to look into this issue?

jun1983 avatar Jun 09 '17 03:06 jun1983

@jun1983 : Can you try updating to the latest version 3.0.0 and see if the issue still exists?

email2vimalraj avatar Jun 26 '17 17:06 email2vimalraj

@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.

jun1983 avatar Jun 27 '17 06:06 jun1983

+1

svarunkmr avatar Jul 24 '17 15:07 svarunkmr

@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.

email2vimalraj avatar Jan 04 '18 03:01 email2vimalraj

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

ghost avatar Feb 11 '18 07:02 ghost

@email2vimalraj Any update on this issue. It would be a huge help.

amar-1314 avatar Jan 23 '19 19:01 amar-1314