【问题标题】:New NCover 3.4.2 makes all my MSTest unit tests fail新的 NCover 3.4.2 使我所有的 MSTest 单元测试都失败了
【发布时间】:2010-04-28 08:54:05
【问题描述】:

昨天,我决定安装最新的 NCover 版本(3.4.2)。但是,当我在现有的 .ncover 配置文件上运行它时,NCover 输出突然报告我所有的 MSTest 测试都失败了。当然,这些测试在 Visual Studio 中运行时会成功。因此,NCover 无法确定任何覆盖范围。

不知何故,旧配置似乎不适用于新版本。

有人知道问题可能是什么或如何解决吗?

顺便说一句。这是我的 ncover 配置。

项目设置: 应用程序配置文件的路径: c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe

应用程序要分析的参数: /testcontainer:D:\dev\MyApp\MyApp.Services.Tests.Unit\bin\Debug\MyApp.Services.Tests.Unit.dll /testcontainer:D:\dev\MyApp\MyApp.WS.Tests。 Unit\bin\Debug\MyApp.WS.Tests.Unit.dll

工作文件夹: D:\dev\MyApp

【问题讨论】:

    标签: .net unit-testing mstest code-coverage ncover


    【解决方案1】:

    我发现了问题,它(当然)与 NCover 无关。问题是 MSTest.exe 找不到我的测试程序集之一。此程序集仅在配置文件中引用,未在代码中使用。在 Visual Studio 中运行时,它可以工作。在 Visual Studio 之外运行失败。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-27
      • 1970-01-01
      • 2020-01-13
      • 2020-09-13
      • 1970-01-01
      相关资源
      最近更新 更多