2012-04-23 119 views
0

谁能告诉我如何与MSTEST一起使用partcover在巡航控制.NET,PartCover与MSTEST在巡航控制.NET

我已经做到了,但我得到一个错误

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> 

使用下面的命令

回答

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