Cucumber + parallel_tests. HTML results?

£可爱£侵袭症+ 提交于 2019-12-19 06:14:08

问题


I currently try to implement parallel_tests for our Cucumber + Watir-WebDriver acceptance tests. As far it goes great.

However, we got used to nice HTML reports from Cucumber with embedded screenshots of failed scenarios. Cucumber creates reports as a single HTML file with all the features. But with parallel_tests, this HTML file is overwritten with the last called Cucumber process and thus incomplete.

Is it possible to generate several HTML reports or generate HTML reports per features file?


回答1:


Put

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

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




回答2:


I don't think you have this out of the box. What we ended up doing was writing a new formatter.

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



来源:https://stackoverflow.com/questions/8623976/cucumber-parallel-tests-html-results

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!