如何抑制nunit控制台输出? [英] How can I suppress nunit console output?

查看:218
本文介绍了如何抑制nunit控制台输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以抑制控制台输出上显示的nunit错误和故障?我尝试使用命令行选项:/xml,/out,/err.但是仍然可以在控制台中获得输出.

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.

推荐答案

从/xml选项的使用中,我可以看到您使用的是较旧版本的NUnit,但是对于较新的版本,答案也是相同的

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.

这篇关于如何抑制nunit控制台输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆