Cucumbers + parallel_tests. HTML results?

I am currently trying to implement parallel_tests for our Cucumber + Watir-WebDriver acceptance tests. How great is that.

However, we are used to good Cucumber HTML reports with built-in screenshots of failed scripts. Cucumber generates reports as one HTML file with all the features. But with parallel_tests, this HTML file is overwritten by the last Cucumber process and therefore is incomplete.

Can I create multiple HTML reports or generate HTML reports for each function file?

+6
source share
2 answers

Placed

default: --format html --out report<%= ENV['TEST_ENV_NUMBER'] %>.html 

at ./config/cucumber.yml . Serum you run the tests, you will find the report.html , report2.html (...) files in the root of the project.

+5
source

I do not think you have it out of the box. What we ended up with was writing a new formatting.

https://github.com/cucumber/cucumber/wiki/Custom-Formatters

+1
source

Source: https://habr.com/ru/post/904426/


All Articles