how to ignore a RUN test

梦想的初衷 提交于 2019-12-11 16:28:31

问题


Assert.Ignore is used to ignore a test in Nunit.

However, in my case I run tests, and if they have, for example, error code 2, I may choose to ignore the result for a while, but I still want it to be counted in the number of run test. But is there just a way to say the result is ignored, neither a failure or a success.

In the *.xml I'd like to have

result="Ignored"

executed="True"


回答1:


I use for now Assert.Inconclusive(), executed="True", so it's the closest to what I wanted.

If someone finds better, feel free to post.



来源:https://stackoverflow.com/questions/30712528/how-to-ignore-a-run-test

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