首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用路径中的空格运行PartCover?

如何使用路径中的空格运行PartCover?
EN

Stack Overflow用户
提问于 2010-06-10 18:32:13
回答 1查看 592关注 0票数 0

我有一个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中的空间。还是我在某个地方漏掉了一些引号?有人想工作吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-06-10 20:11:14

你完全正确,你忘了引用这条路。读关于如何将PartCover与MSBuild集成的指南

代码语言:javascript
复制
--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:\

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3017345

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档