黄瓜+ parallel_tests。 HTML结果? [英] Cucumber + parallel_tests. HTML results?

查看:125
本文介绍了黄瓜+ parallel_tests。 HTML结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前尝试为我们的Cucumber + Watir-WebDriver验收测试实现parallel_tests。



但是,我们习惯于使用来自Cucumber的漂亮的HTML报告以及失败场景的嵌入式屏幕截图。 Cucumber将报告创建为具有所有功能的单个HTML文件。但是对于parallel_tests,这个HTML文件被最后调用的Cucumber过程覆盖,因此不完整。



是否可以生成多个HTML报告或者为每个特征文件生成HTML报告?


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

./ config / cucumber.yml 。你运行测试,你会发现项目中的 report.html report2.html (...)根。


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?

解决方案

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.

这篇关于黄瓜+ parallel_tests。 HTML结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆