How do you run PartCover with spaces in the path?
- by nportelli
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?