Trouble creating coverage report

I'm having some difficulty creating a code coverage report via TeamCity. As near as I can tell, instrumentation is occuring fine, and the code coverage output is being created as well, however, it looks as though some time between completing the unit test run and running the report the coverage.ec file is being lost. While it does show up in the artefacts directory, the build log always ends with

EMMA: Create Report (<1s)
EMMA: processing control command sequence ...
EMMA: executing ...
Unable to find /opt/TeamCity/buildAgent/work/Election_Rewrite/coverage.ec, cannot create EMMA report


Any ideas?

--Dave Griffith

4 comments
Comment actions Permalink

Dave Griffith wrote:

I'm having some difficulty creating a code coverage report via TeamCity. As near as I can tell, instrumentation is occuring fine, and the code coverage output is being created as well, however, it looks as though some time between completing the unit test run and running the report the coverage.ec file is being lost. While it does show up in the artefacts directory, the build log always ends with

EMMA: Create Report (<1s)
EMMA: processing control command sequence ...
EMMA: executing ...
Unable to find /opt/TeamCity/buildAgent/work/Election_Rewrite/coverage.ec, cannot create EMMA report


Any ideas?


Which TeamCity build do you use? We've done several coverage-related bugfixes in TeamCity 1.2, so
if you use this build, please file a bug report.

Kind regards,
KIR


--
Kirill Maximov
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Updating to the 1.2 RC fixed the issue. Thanks.

--Dave Griffith

0
Comment actions Permalink

I am facing the same issue (Create Report Unable to find \coverage.em, cannot create EMMA report)

TeamCity Enterprise 9.1.3 (build 37176)

any ideas?

0
Comment actions Permalink

Hello,

Sorry for delay. How do you run tests? Please attach screenshot of the build step settings and full build log. Thank you!

0

Please sign in to leave a comment.