Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PartCover console produces empty output xml

I'm using partcover to produce codecoverage for a bunch of mstest powered unit tests.

I use the command line:

PartCover.exe --target "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" --target-args "/testcontainer:c:\CrusieControlProjects\AcademyPro\AcademyTests\bin\Release\AcademyTests.dll" --include [AcademyPro*]*

This runs, all tests pass, but I end up with the output:

Results file:      C:\Program Files\Gubka Bob\PartCover .NET 2.3\TestResults\Administrator_PSLV22 2009-03-31 17_54_18.trx
Run Configuration: Default Run Configuration
Target PageFaultCount: 10565
Target PagefileUsage: 27631616
Target PeakPagefileUsage: 31297536
Target PeakWorkingSetSize: 31498240
Target QuotaNonPagedPoolUsage: 8180
Target QuotaPagedPoolUsage: 217124
Target QuotaPeakNonPagedPoolUsage: 13012
Target QuotaPeakPagedPoolUsage: 255524
Target WorkingSetSize: 30310400
request target shutdown
<PartCoverReport date="2009-03-31T18:00:36.7676250+01:00" />

When I run with the --output command the xml file ends up with just

<PartCoverReport date="2009-03-31T18:00:36.7676250+01:00" />

Why might this be happening?

like image 835
ilivewithian Avatar asked Mar 31 '09 17:03

ilivewithian


1 Answers

To fix this I ended up downgrading.

I was using version 2.3 (which is a dev build) and switched to version 2.2.

Now the tests run fine and I get sensible coverage data.

Maybe that will help someone.

like image 55
ilivewithian Avatar answered Sep 24 '22 18:09

ilivewithian