问题
Is there a way to suppress nunit errors and failures displayed on console output? I tried using the command line options: /xml, /out, /err. But still get the output in console.
回答1:
From your use of the /xml option, I can see you are using an older version of NUnit, however, the answer is the same for newer ones as well.
There is no way to change the report output produced by the console runner. You can redirect the entire thing to a file, or even to the null device, but you can't suppress parts of it.
来源:https://stackoverflow.com/questions/35949477/how-can-i-suppress-nunit-console-output