Junit 4黄瓜记者跳过测试

时间:2018-07-05 15:35:03

标签: junit4 cucumber-junit

我正在编写一个黄瓜gherkin.formatter报告程序和格式化程序,我希望能够从班级内跳过junit黄瓜测试。

通过TestNG,我可以使用throw new SkipException(),但是我看不到使用junit跳过测试的方法。

我希望根据运行时确定的条件从startOfScenarioLifeCycle函数内部跳过各个测试方案。

1 个答案:

答案 0 :(得分:0)

抛出org.junit.AssumptionViolatedException异常以跳过junit