开发者

New NCover 3.4.2 makes all my MSTest unit tests fail

开发者 https://www.devze.com 2022-12-28 05:24 出处:网络
Yesterday, I decided to install the newest NCo开发者_StackOverflow社区ver version (3.4.2). However, when I ran it on my existing .ncover configuration file, the NCover output suddenly reported that al

Yesterday, I decided to install the newest NCo开发者_StackOverflow社区ver version (3.4.2). However, when I ran it on my existing .ncover configuration file, the NCover output suddenly reported that all my MSTest tests failed. Of course those tests succeed when ran within Visual Studio. Because of this, NCover isn't able to determine any coverage.

Somehow the old configuration doesn't seem to work with the new version.

Does anyone have any idea what the problem could be or how to solve it?

Btw. Here is my ncover configuration.

Project settings: Path to application to profile: c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe

Arguments for the application to profile: /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

Working folder: D:\dev\MyApp


I found out the problem, and it had (of course) nothing to do with NCover. The problem was that MSTest.exe couldn't find one of my test assemblies. This assembly was only referenced in the configuration file and wasn't used in code. When run within Visual Studio, this works. Running outside of Visual Studio failed.

0

精彩评论

暂无评论...
验证码 换一张
取 消