How do you run PartCover with spaces in the path?

Posted by nportelli on Stack Overflow See other posts from Stack Overflow or by nportelli
Published on 2010-06-10T18:32:13Z Indexed on 2010/06/10 20:12 UTC
Read the original article Hit count: 529

Filed under:
|
|

I have a msbuild file that I'm trying to run from Hudson CI. It outputs like this

"C:\Program Files\Gubka Bob\PartCover .NET 2\PartCover.exe" --target "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" --target-args "/noisolation" "/testcontainer:C:\CI\Hudson\jobs\Video Raffle\workspace\Source\VideoRaffleCaller\Source\VideoRaffleCaller.Test.Unit\bin\Debug\VideoRaffleCaller.Test.Unit.dll" --include "[VideoRaffleCaller*]*" --output "Coverage\partcover.xml"

I get this error

Invalid switch "raffle\workspace\source\videorafflecaller\source\videorafflecall er.test.unit\bin\debug\videorafflecaller.test.unit.dll". For switch syntax, type "MSTest /help"

WTF? Looks like PartCover doesn't handle spaces in the --target-args well. Or am I missing some quotes somewhere? Has anyone gotten something like to to work?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about hudson