问题
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