Coverage Report seems incomplete.

I have enabled code coverage for one of my builds and checked "Include source files in coverage data". The report seems to run fine (I don't see any errors related to EMMA in the build logs or in the teamcity.log in the relevant build agent) but while classes, methods and blocks all show a percentage of coverage (and the number seem reasonable), the bar for lines is always zero.

When I look at the report itself I get reports down to the method level but there are no links to the source files themselves which is what I would expect to see. Is there anything else I need to do to make this work?

1 comment
Comment actions Permalink

Hardi Stutes wrote:

I have enabled code coverage for one of my builds and checked "Include source files in coverage data". The report seems to run fine (I don't see any errors related to EMMA in the build logs or in the teamcity.log in the relevant build agent) but while classes, methods and blocks all show a percentage of coverage (and the number seem reasonable), the bar for lines is always zero.

When I look at the report itself I get reports down to the method level but there are no links to the source files themselves which is what I would expect to see. Is there anything else I need to do to make this work?


I suppose in your project some class files are compiled without debug information.
Please read emma's FAQ about this problem: http://emma.sourceforge.net/faq.html#q.report.warnings

If this FAQ won't help, please let me know, we'll try to dig deeper.

Kind regards,
KIR



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

0

Please sign in to leave a comment.