I have set up Cobertura on a web project with tomcat. After a few
difficulties a get a coverage report.
But I have still some "leaks" in the report.
Can anyone help me? Maybe you got similar problems.
I'm using Ant for Cobertura and unit testing.
I get some warnings like this during the cobertura-instrument-task:
[cobertura-instrument] WARN visitEnd, No line number information
Perhaps you need to compile with debug=3Dtrue?
The warnings are only for anonymous inner classes. But there are also
anonymous inner classes I get no warnig for. The report contains N/A for
these classes, of course. Only the complexity is reported.
For other classes the report entry is ok. (Besides that the tests cover
much too less code at the moment ;) )
I am using the standard Java SDK so I don't think it is a mistake of the
For some classes the line coverage is reported but the branch coverage
contains N/A. Complexity is ok again.
For this issue I have no far idea what the reason could be.
THX for help