Specflow - 如何使Pending测试不会使整个测试失败

时间:2016-03-24 04:27:21

标签: selenium-webdriver automated-tests specflow specrun

您好我正在使用specflow来自动化我的Web测试。从最近几天开始,Pending测试使整个测试处于失败模式,而不是让它通过。以前它是通过测试套件,如果发现一个或两个挂起的测试,但从上周我遇到的问题,如它没有通过测试。

有人可以告诉我如果要等待测试通过吗?

1 个答案:

答案 0 :(得分:1)

你可以设置Ignore for' missingOrPendingStepsOutcome'属性并尝试。

<specflow> 
....
....
<runtime 
      stopAtFirstError="false"
      missingOrPendingStepsOutcome="Ignore" />
....    
</specflow>

礼貌:Configuration in SpecFlow