No covered code was detected

Since we upgraded our TeamCity server from 9.0.1 to 9.1.6 we have been unable to get code coverage using dotCover. The code coverage fails with the below message. Note that code coverage was working fine until the upgrade.

No covered 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)

Visual Studio code coverage is disabled and pdbs are present. Include/exclude patterns haven't changed:

+:*
-:*.Test*
-:_Dependencies
-:Moq

The only difference I can think of is that the JetBrains dotCover Console Runner got changed with the upgate from v2.7.2.176 to 10.0.2. Build 104.0.20151218.125453.

7 comments

In case someone else encounters the same issue, reverting to dotCover v2.7.2.176 by intalling dotCover 2.7 on the build agents and setting the "Path to dotCover Home:" in the build config solved our code coverage problems.

It could be due to a bug in dotCover 10.0.2 but we were unable to isolate what could be causing it to occur.

0

Hello Julien,

Could you please attach full build log and dotCover logs for the affected build?

0

Hello Alina,

Do you have an email address I can send them to?

0

You can use "Submit a request" button on the top or use teamcity-support@jetbrains.com address.

0

Hi, I'm experiencing the same issue. Was there a solution to this other than going to an older version of dotcover?

Edit: Just updating this to say that the solution that worked for the submitter of the original post did not work for us. We're on version 9.1.6 as well.

0

Hello,

No, we haven't found the root cause of the issue. Is it possible to get your binaries to reproduce this issue? Please use "Submit a request" button on the top to send data privately.

0

We run TC 2017.2.1 and have dotCover 2017.3.1 

Created new project and same issue. on Code Coverage tab for the build we have 

No coverage information was found

here is a lines from build log with dotCover in it

 

262 [08:05:52] : [Step 5/7] Starting: C:\TeamCity\buildAgent\tools\JetBrains.dotCover.CommandLineTools.bundled\dotCover.exe cover C:\TeamCity\buildAgent\temp\buildTmp\PpDqCSLPByTRMC58duJKVhlccjiafwCq.dotCover /ReturnTargetExitCode /NoCheckForUpdates
264 [08:05:53] : [Step 5/7] JetBrains dotCover Console Runner 2017.2.2. Build 109.0.20171006.131113
266 [08:05:54] : [Step 5/7] [JetBrains dotCover] Coverage session started [1/15/2018 8:05:54 AM]
295 [08:06:14] : [Step 5/7] [JetBrains dotCover] Coverage session finished [1/15/2018 8:06:14 AM]
296 [08:06:14] : [Step 5/7] [JetBrains dotCover] Coverage results post-processing started [1/15/2018 8:06:14 AM]
297 [08:06:15] : [Step 5/7] [JetBrains dotCover] Coverage results post-processing finished [1/15/2018 8:06:15 AM]
305 [08:06:15] : [Publishing artifacts] Collecting files to publish: [C:\TeamCity\buildAgent\temp\buildTmp\PpDqCSLPByTRMC58duJKVhlccjiafwCq.dotCover => .teamcity\bt93_RUNNER_132]
306 [08:06:17] : [Publishing artifacts] Publishing 1 file using [WebPublisher]: C:/TeamCity/buildAgent/temp/buildTmp/PpDqCSLPByTRMC58duJKVhlccjiafwCq.dotCover => .teamcity/bt93_RUNNER_132
307 [08:06:17] : [Publishing artifacts] Publishing 1 file using [ArtifactsCachePublisher]: C:/TeamCity/buildAgent/temp/buildTmp/PpDqCSLPByTRMC58duJKVhlccjiafwCq.dotCover => .teamcity/bt93_RUNNER_132
308 [08:06:15]i: [Step 5/7] ##teamcity[publishArtifacts 'C:\TeamCity\buildAgent\temp\buildTmp\PpDqCSLPByTRMC58duJKVhlccjiafwCq.dotCover => .teamcity\bt93_RUNNER_132']
585 [08:06:27] : Get dotCover version (1s)
586 [08:06:28] : [Get dotCover version] Started dotCover: C:\TeamCity\buildAgent\tools\JetBrains.dotCover.CommandLineTools.bundled\dotCover.exe version C:\TeamCity\buildAgent\temp\buildTmp\dotCover5294977943953067429Version
587 [08:06:28] : [Get dotCover version] Output: JetBrains dotCover Console Runner 2017.2.2. Build 109.0.20171006.131113
590 [08:06:28] : [Get dotCover version] dotCover exited with code: 0
592 [08:06:28] : Merge dotCover reports (2s)
593 [08:06:30] : [Merge dotCover reports] Started dotCover: C:\TeamCity\buildAgent\tools\JetBrains.dotCover.CommandLineTools.bundled\dotCover.exe merge C:\TeamCity\buildAgent\temp\buildTmp\dotcover3097713978239201099.xml
594 [08:06:30] : [Merge dotCover reports] Output: JetBrains dotCover Console Runner 2017.2.2. Build 109.0.20171006.131113
596 [JetBrains dotCover] Snapshot merging started [1/15/2018 8:06:29 AM]
597 [JetBrains dotCover] Source snapshots number: 1
598 [JetBrains dotCover] Snapshot merging finished [1/15/2018 8:06:30 AM]
600 [08:06:30] : [Merge dotCover reports] dotCover exited with code: 0
601 [08:06:30] : Remove dotCover snapshot files (1s)
602 [08:06:32] : [Remove dotCover snapshot files] Started dotCover: C:\TeamCity\buildAgent\tools\JetBrains.dotCover.CommandLineTools.bundled\dotCover.exe delete C:\TeamCity\buildAgent\temp\buildTmp\dotcover1287448212329824556.xml
603 [08:06:32] : [Remove dotCover snapshot files] Output: JetBrains dotCover Console Runner 2017.2.2. Build 109.0.20171006.131113
606 [08:06:32] : [Remove dotCover snapshot files] dotCover exited with code: 0
607 [08:06:32] : Generate dotCover report (2s)
608 [08:06:34] : [Generate dotCover report] Started dotCover: C:\TeamCity\buildAgent\tools\JetBrains.dotCover.CommandLineTools.bundled\dotCover.exe report C:\TeamCity\buildAgent\temp\buildTmp\dotcover2238229470435097722.xml
609 [08:06:34] : [Generate dotCover report] Output: JetBrains dotCover Console Runner 2017.2.2. Build 109.0.20171006.131113
611 [JetBrains dotCover] Report generation started [1/15/2018 8:06:33 AM]
612 [JetBrains dotCover] Report generation finished [1/15/2018 8:06:34 AM]
614 [08:06:34] : [Generate dotCover report] dotCover exited with code: 0
615 [08:06:34]W: Generate dotCover HTML report
616 [08:06:34]W: [Generate dotCover HTML report] No source files were found under the build checkout directory C:\TeamCity\buildAgent\work\e670230d4db31dd4. No source files will be included in dotCover report as source code of classes.
618 [08:06:36] : [Packing snapshot files] Started dotCover: C:\TeamCity\buildAgent\tools\JetBrains.dotCover.CommandLineTools.bundled\dotCover.exe zip C:\TeamCity\buildAgent\temp\buildTmp\dotcover7861695247447959391.xml
619 [08:06:36] : [Packing snapshot files] Output: JetBrains dotCover Console Runner 2017.2.2. Build 109.0.20171006.131113
622 [08:06:36] : [Packing snapshot files] dotCover exited with code: 0
623 [08:06:36] : Remove dotCover snapshot files (1s)
624 [08:06:37] : [Remove dotCover snapshot files] Started dotCover: C:\TeamCity\buildAgent\tools\JetBrains.dotCover.CommandLineTools.bundled\dotCover.exe delete C:\TeamCity\buildAgent\temp\buildTmp\dotcover4964010389893685926.xml
625 [08:06:37] : [Remove dotCover snapshot files] Output: JetBrains dotCover Console Runner 2017.2.2. Build 109.0.20171006.131113
628 [08:06:37] : [Remove dotCover snapshot files] dotCover exited with code: 0
642 [08:06:37] : [Publishing artifacts] Collecting files to publish: [C:\TeamCity\buildAgent\temp\buildTmp\coverage4432125366849935894zip\dotCover.dcvr=>.teamcity/.NETCoverage]
643 [08:06:39] : [Publishing artifacts] Publishing 1 file using [WebPublisher]: C:/TeamCity/buildAgent/temp/buildTmp/coverage4432125366849935894zip/dotCover.dcvr => .teamcity/.NETCoverage
644 [08:06:39] : [Publishing artifacts] Publishing 1 file using [ArtifactsCachePublisher]: C:/TeamCity/buildAgent/temp/buildTmp/coverage4432125366849935894zip/dotCover.dcvr => .teamcity/.NETCoverage
646 [08:06:37] : [Publishing artifacts] Collecting files to publish: [C:\TeamCity\buildAgent\temp\buildTmp\dotCover8825725563533553918report\coverage.zip=>.teamcity/.NETCoverage]
647 [08:06:41] : [Publishing artifacts] Publishing 1 file using [WebPublisher]: C:/TeamCity/buildAgent/temp/buildTmp/dotCover8825725563533553918report/coverage.zip => .teamcity/.NETCoverage
648 [08:06:41] : [Publishing artifacts] Publishing 1 file using [ArtifactsCachePublisher]: C:/TeamCity/buildAgent/temp/buildTmp/dotCover8825725563533553918report/coverage.zip => .teamcity/.NETCoverage

 

0

Please sign in to leave a comment.