在Cruise control .net中使用msTest进行PartCover

时间:2012-04-23 11:08:11

标签: cruisecontrol.net mstest partcover

有人可以告诉我如何在Cruise control .net中使用partcover和mstest,

我已经做到了,但我收到了错误

errorMSB3073: The command "C:\Program Files\PartCover\PartCover .NET 4.0\PartCover.exe --target=${nunitExePath} --target-work-dir=D:\Demo_Project\ --target-args=D:\DEMO\TestProject\bin\Debug\TestProject.dll --include=[LaTrompa]* --output=${partCoverReportPath}\${projectTests}-Results.xml" exited with code 9009.

我在msbuild中使用了以下命令

<PropertyGroup>
<partCoverReportPath>D:\BuildReports\PartCover\</partCoverReportPath>
<nunitExePath>C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe</nunitExePath>   

      - &GT;        
      
  

1 个答案:

答案 0 :(得分:0)

使用以下命令

C:\Program Files\PartCover\PartCover .NET 4.0\PartCover.exe" --target "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe" --include [TestProjectName]* --include [More if u have]* --target-args "/noisolation /testcontainer:path\TestProjectName.dll" --target-work-dir "Working dir of project" --output "output pathr\partcover.xml