Issues integrating NCover with CC.NET, .NET framework 4.0 and MsTest

Posted by Nikhil on Stack Overflow See other posts from Stack Overflow or by Nikhil
Published on 2010-04-14T18:09:47Z Indexed on 2010/04/14 18:13 UTC
Read the original article Hit count: 1171

Filed under:
|
|
|
|

I'm implementing continuous integration with CruiseControl.NET, .NET 4.0, NCover and MsTest. On the build server I'm unable to run code coverage from the Ncover explorer or NCover console. When I run where vstesthost.exe from the Ncover console it returns the Visual Studio 9.0 path and does not seem to pick up .net framework 4.0. I've followed instructions from this MSTest: Measuring Test Quality With NCover post with slight modifications for .net framework 4.0, without any success.

My CC.NET script looks like this

<exec>
  <executable>C:\Program Files (x86)\NCover\NCover.Console.exe</executable>
  <baseDirectory>$(project_root)\</baseDirectory>
  <buildArgs>"C:\Program Files (x86)\**Microsoft Visual Studio 10.0**\Common7\IDE\MSTest.exe" /testcontainer:...\...\UnitTests.dll /resultsfile:TestResults.trx //xml D:\_Projects\....\Temp_Coverage.xml //pm vstesthost.exe</buildArgs>
  <buildTimeoutSeconds>$(ncover.timeout)</buildTimeoutSeconds>
</exec>

Has anyone come across similar issue. Any help would be much appreciated.

© Stack Overflow or respective owner

Related posts about cc.net

Related posts about mstest