Getting Serenity HTML reports during execution
I am using Serenity with Cucumber. Here the HTML report created for each scenario is with a random string.
- Can we rename those individual HTML report by scenario name?.
- Is the HTML report generated right after the scenario is completed? Or after the whole execution?
- If an answer to the 2nd question is yes can someone please explain the report generation flow?
- Can we get the result during runtime? Or only at the end of the test run?
My requirement is to get test results parallel as soon as each test/scenario/feature is completed.
The report is generated by running
mvn serenity:aggregateand is based on your surefire/failsafe report. Usually you call this at the end of your whole test suite.
I would suggest you provide quicker feedback by watching the
target/surefire-reports/.*xmlfiles. The these are created after each class executed. If you really need html reports, you can theoretically create a report after each executed class. I am convinced, this is to much overhead though.
Another strategy would be to use execution in parallel batches with every batch running a
aggregateand publishing the result.