黄瓜 + 并行测试.HTML 结果? [英] Cucumber + parallel_tests. HTML results?

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

问题描述

我目前尝试为我们的 Cucumber + Watir-WebDriver 验收测试实现 parallel_tests.就目前而言,一切都很好.

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

但是,我们已经习惯了来自 Cucumber 的精美 HTML 报告,其中嵌入了失败场景的屏幕截图.Cucumber 将报告创建为具有所有功能的单个 HTML 文件.但是使用parallel_tests,这个HTML文件被最后调用的Cucumber进程覆盖,因此不完整.

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.

是否可以生成多个 HTML 报告或为每个功能文件生成 HTML 报告?

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

./config/cucumber.yml 中.运行测试后,您会在项目根目录中找到 report.htmlreport2.html (...) 文件.

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

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

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