Team City 6.0 build 15772 - dotCover : No executable code was detected

Hi,

I am sure this is a configuration issue at my end, but I cant seem to get dotCover to produce any output.

Just upgraded from 5.1.2 to 6.0.

Running on a windows server, with a desktop build agent.

Using the bundled dotCover.

The runner is MSTest, specifying the assemblies for test, ie no testmetadata specified. No results file or command line options specified.


In the .Net coverage section, specifying dotCover (bundled), .Net Framework 2, x86.  No filters.

The tests run, says loads fail, a few pass...

The relevant bit of the log is this:

14:02:45]: Processing 1 coverage report(s)

[14:02:45]: Generating coverage report by dotcover for files: [C:\TeamCityBuildAgent\temp\buildTmp\tmp13F.tmp]
[14:02:45]: Generate dotCover report (2s)
[14:02:47]: [Generate dotCover report] Started  dotCover: C:\TeamCityBuildAgent\plugins\dotCover\bin\dotCover.exe report  C:\TeamCityBuildAgent\temp\buildTmp\dotcover5600312005748867013.xml
[14:02:47]: [Generate dotCover report] Output:  JetBrains dotCover Console Runner v1.0.121.4. Copyright (c) 2009-2010  JetBrains s.r.o. All rights reserved.  Report generation started [21/12/2010 14:02:46] Report generation finished [21/12/2010 14:02:47]
[14:02:47]: [Generate dotCover report] dotCover exited with code: 0
[14:02:47]: Remove dotCover snapshot files (2s)
[14:02:49]: [Remove dotCover snapshot files]  Started dotCover:  C:\TeamCityBuildAgent\plugins\dotCover\bin\dotCover.exe delete  C:\TeamCityBuildAgent\temp\buildTmp\dotcover5420721833147909734.xml
[14:02:49]: [Remove dotCover snapshot files]  Output: JetBrains dotCover Console Runner v1.0.121.4. Copyright (c)  2009-2010 JetBrains s.r.o. All rights reserved.
[14:02:49]: [Remove dotCover snapshot files] dotCover exited with code: 0
[14:02:49]: Generate dotCover HTML report
[14:02:49]: DotCover statement coverage was: 0 of 0 ( -1.0%)
[14:02:49]: No executable code was detected.  Please check: - Include / exclude patterns are correct - Assemblies were compiled with debugging information - .pdf files are available
[14:02:49]: Publishing artifacts
[14:02:49]: [Publishing artifacts] Paths to  publish:  [C:\TeamCityBuildAgent\temp\buildTmp\teamcity249974242158269747ncover\CoverageReport.xml=>.teamcity/.NETCoverage]
[14:02:49]: [Publishing artifacts] Sending files
[14:02:49]: Publishing artifacts
[14:02:49]: [Publishing artifacts] Paths to publish: [C:\TeamCityBuildAgent\temp\buildTmp\coverage8936509894523403899zip\coverage.zip=>]
[14:02:49]: [Publishing artifacts] Sending files
[14:02:49]: Publishing artifacts
[14:02:49]: [Publishing artifacts] Paths to publish: [teamcity-info.xml]
[14:02:49]: [Publishing artifacts] Sending files
[14:02:50]: Build finished


Obviously the line in red/No executable code was detected seems to be the issue - but why is it not finding my code... do I need a filter to make it find it?  do I need to set an option on the MSTest call?


Thanks in advance,
Chris
11 comments
Comment actions Permalink

From twitter:

@kimptoc have you define relative or full paths to assembly? Currently there's a shortcoming that full paths need to be specified #dotcover

-- http://twitter.com/#!/hhariri/status/17452206361944064

My reply:

@hhariri hi - tried no filter, also tried just assembly name.  now trying with  path, as entered into "List assembly files" text box- nojoy

-- http://twitter.com/#!/kimptoc/status/17483594414948352

0
Comment actions Permalink

A bit more information:

Using 2 build steps.

1) VS sln file, target - Rebuild, configuration - Debug

2) MSTest, with assembly list and testrunconfig specified, no metadata file.

0
Comment actions Permalink

Chris,

If the issue is still actual, please post full build log, or send it to teamcity-feedback[at]jetbrains.com.

Thanks.

0
Comment actions Permalink

Was this resolved?

Is there still an issue using relatived paths in DotCover xml configs?

0
Comment actions Permalink

Hi,

This problem is still outstanding - dotcover is failing to find my MSTest tests.  We have since added another project that is using Nunit and that is working just fine with dotCover.

I have emailed the full log, but the relevant bit seems to be this:

[08:37:53]: Generating coverage report by dotcover for files: [C:\TeamCityBuildAgent\temp\buildTmp\tmp24.tmp]
[08:37:53]: Generate dotCover report
[08:37:57]:     [Generate dotCover report] Started dotCover: C:\TeamCityBuildAgent\plugins\dotCover\bin\dotCover.exe report C:\TeamCityBuildAgent\temp\buildTmp\dotcover8273035926979317831.xml
[08:37:57]:     [Generate dotCover report] Output: JetBrains dotCover Console Runner v1.0.121.4. Copyright (c) 2009-2011 JetBrains s.r.o. All rights reserved.

Report generation started [17/01/2011 08:37:56]
Report generation finished [17/01/2011 08:37:57]

[08:37:57]:     [Generate dotCover report] dotCover exited with code: 0
[08:37:57]: Remove dotCover snapshot files
[08:37:59]:     [Remove dotCover snapshot files] Started dotCover: C:\TeamCityBuildAgent\plugins\dotCover\bin\dotCover.exe delete C:\TeamCityBuildAgent\temp\buildTmp\dotcover4277028045963960119.xml
[08:37:59]:     [Remove dotCover snapshot files] Output: JetBrains dotCover Console Runner v1.0.121.4. Copyright (c) 2009-2011 JetBrains s.r.o. All rights reserved.


[08:37:59]:     [Remove dotCover snapshot files] dotCover exited with code: 0
[08:37:59]: Generate dotCover HTML report
[08:37:59]: DotCover statement coverage was: 0 of 0 ( -1.0%)
[08:37:59]: No executable code was detected.
Please check:
- Include / exclude patterns are correct
- Assemblies were compiled with debugging information
- .pdf files are available

Thanks,
Chris

0
Comment actions Permalink

Thank you for logs. we will reply you soon

0
Comment actions Permalink

Chris, just to let you know. We've asked developers from dotCover team to look at your issue, and it will take several days.
I'll reply you as soon as I have any news.

Thanks.
Michael

0
Comment actions Permalink

Please watch for DCVR-2401, and ask for its current status in dotCover forum.

Thanks
Michael

0
Comment actions Permalink

Hi Chris

We just released EAP for dotCover 1.1, it has improvements in logging.
Is it possible to test your problem build with this version and send us resulted logs?

Thanks
Michael

0
Comment actions Permalink

Hi,

Thanks for that - I am probably missing something obvious, but TeamCity 6 does not have this version bundled with it, right?

Is there a way to upgrade the bundled version?

I see this open item - so I am guess not...

http://youtrack.jetbrains.net/issue/TW-15032?query=tag%3A+coverage

Thanks,

Chris

0
Comment actions Permalink

You may specify path to new dotCover in dotCover settings for each build configuration. This will allow to check if it helps.

To patch bundled dotCover, please find <server>/werbapps/root/web-inf/plugins/dotNetRunners/agent/dotCover.zip. To update bundled dotCover, you may replace the contents of this file with new dotcover. Please ensure files structure is not changed after patch. Do not forget to backup original file. Build agents will updage automacally as the change in the file is detected.

0

Please sign in to leave a comment.