email2vimalraj / CucumberExtentReporter

A plugin to generate the cucumber jvm custom html report using ExtentsReport
http://www.vimalselvam.com/cucumber-extent-reporter/
MIT License
58 stars 74 forks source link

Merge multiple test reports #46

Open jun1983 opened 7 years ago

jun1983 commented 7 years ago

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.

email2vimalraj commented 7 years ago

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?

jun1983 commented 7 years ago

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

jun1983 commented 7 years ago

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

email2vimalraj commented 7 years ago

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

jun1983 commented 7 years ago

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

ghost commented 6 years ago

+1

email2vimalraj commented 6 years ago

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

ghost commented 6 years ago

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

amar-1314 commented 5 years ago

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