문제

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).

다른 팁

In general this messages means TeamCity failed to find any covered line. This could be caused by assemblies or coverage parameters.

Please feel free to create an issue at http://youtrack.jetbrains.net with partcover report you got from a local test run. Please include version number of partcover too.

TeamCity 6.5.3 must support partcover 4.0.11129

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top