【问题标题】:How to hide this error on vstest.console.exe?如何在 vstest.console.exe 上隐藏此错误?
【发布时间】:2015-05-19 14:02:07
【问题描述】:

我已经开发了单元测试项目并用它执行了

vstest.console.exe 

在那个控制台中我只想显示方法通过或方法失败..

如何隐藏错误,跟踪...

【问题讨论】:

    标签: c# visual-studio-2012 testing visual-studio-2013 vs-unit-testing-framework


    【解决方案1】:

    Herevstest.console.exe 的可用命令行选项,它们都不能完全满足您的需求。

    最好的办法是通过从Microsoft.VisualStudio.TestPlatform.ObjectModel.dll 实现ITestLogger 然后使用/logger 选项指定它来编写自定义记录器。

    查看this post了解更多详情。

    【讨论】:

      猜你喜欢
      • 2022-01-03
      • 1970-01-01
      • 2023-01-10
      • 2013-05-05
      • 1970-01-01
      • 1970-01-01
      • 2022-11-25
      • 2017-09-24
      • 1970-01-01
      相关资源
      最近更新 更多