我有一个msbuild文件,我正试图从Hudson运行。它的输出像这样
"C:\Program \Gubka Bob\PartCover .NET 2\PartCover.exe“--目标"C:\Program \Microsoft 9.0\Common7\IDE\MSTest.exe”--目标--args "/noisolation“"/testcontainer:C:\CI\Hudson\jobs\Video 9.0\Common7\IDE\MSTest.exe”--包括"VideoRaffleCaller**“--输出"Coverage\partcover.xml”
我知道这个错误
无效开关"raffle\workspace\source\videorafflecaller\source\videorafflecall er.test.unit\bin\debug\videorafflecaller.test.unit.dll".对于开关语法,输入"MSTest /help“
见鬼?看来PartCover不能很好地处理目标args中的空间。还是我在某个地方漏掉了一些引号?有人想工作吗?
发布于 2010-06-10 20:11:14
你完全正确,你忘了引用这条路。读关于如何将PartCover与MSBuild集成的指南。
--target-args=
Argument specifies arguments for target process. If target argument
contains spaces - quote . If you want specify quote (") in , then
precede it by slash (\)因此,请尝试将测试容器参数更改为
“/testcontainer:\”C:\CI\Hudson\jobs\视频/testcontainer:\
https://stackoverflow.com/questions/3017345
复制相似问题