Cucumber-Jvm produces empty Json file when any of the test Fails

纵然是瞬间 提交于 2019-12-11 11:29:29

问题


I have about 50 feature files running on Jenkin Server and it produces .JSON file which will be fed into Cucumber Pie chart generator.

Jenkin produces file when All Tests Succeeds, and produces Pie chart as well

When any of the Test Step fails , It generates file with zero size (empty file)

My project is setup using surefire plug in...I dont know if that matters...

Thanks


回答1:


The Way Cucumber exits.....

//System.exit(stats.hadErrors() || stats.hadFailures() ? 1 : 0);

System.exit(0);



来源:https://stackoverflow.com/questions/21918650/cucumber-jvm-produces-empty-json-file-when-any-of-the-test-fails

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