I'm using cobertura, but it is giving me 100% line coverage. It is showing only those lines of code which are executed?
Asked
Active
Viewed 615 times
2 Answers
0
You need to include the sources (or make sure, that they are included), when you use the report task:
<cobertura-report format="html" destdir="${coveragereport.dir}" srcdir="${src.dir}" />
Reference: cobertura-anttask
Otherwise cobertura cannot know, how many lines/classes actually exist and will report 100% coverage.