I'm trying to setup partcover for .net 4 on x64 machine with TeamCity.
Tests are executed, but coverage report shows 0 coverage.
I'm getting the following message in log:
No executable code was detected.
The issue could be caused by one of the following:
- Include / exclude patterns are incorrect
- Assemblies are compiled without debugging information
- .pdb files are not available
- Visual Studio code coverage is enabled for MSTest
- .testrunconfig is used for MSTest and Visual Studio code coverage is not disabled (CodeCoverage section with enable="true" is present)
But the include pattern is [*]*
.
I'm running TeamCity 6.5.3 if it matters. Has anybody managed to run partcover on that version?
1) PartCover only supports 32 bit processes, so you need to make sure your test runner is also running 32 bit.
2) Make sure you register the PartCover dll using regsvr32 (you can't use per-user registration if using a service account to run team city).