使用Cucumber - Selenium Ruby测试报告输出 [英] Test Report Output using Cucumber - Selenium Ruby

查看:309
本文介绍了使用Cucumber - Selenium Ruby测试报告输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要从我的Cucumber测试的报告输出。到目前为止,我可以把以下内容:

I'm looking to have reports output from my Cucumber tests. So far I can put the following:

cucumber features/feature_name.feature -f json -o C:/Reports

这只会在测试结束时生成一个json报告,

This will only produce a json report at the end of the test and you can't see the results as they're happening as you normally would with cucumber.

我可以让它做这两个,所以我会看到cmd / red中的绿色/红色步骤,并得到json报告在

Can I get it to do both so that I will see the green/red steps within cmd and get the json report at the end?

谢谢

推荐答案

要包含默认的pretty格式化程序和json格式化程序:

To include the default "pretty" formatter and the "json" formatter:

cucumber features/feature_name.feature -f pretty -f json -o C:/Reports/results.txt

这篇关于使用Cucumber - Selenium Ruby测试报告输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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