Test Report Output using Cucumber - Selenium Ruby

空扰寡人 提交于 2020-01-13 07:09:37

问题


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

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.

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?

Thank you


回答1:


You can add as many report formatters as you want.

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

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



回答2:


It's now recommended to use -p json:C:/Reports/results.json.



来源:https://stackoverflow.com/questions/25781478/test-report-output-using-cucumber-selenium-ruby

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