Closed GoogleCodeExporter closed 8 years ago
I try on a "fresh" machine to use genhtml on the attached file. I placed the
file in
the base directory of the application and I run the command from the source
directory. It worked fine.
genhtml ../timemidletcoverage.lcov1
Reading data file ../timemidletcoverage.lcov1
Found 1 entries.
No common filename prefix found!
Writing .css and .png files.
Generating output.
Processing file example/TimeMIDlet.java
Writing directory view page.
Overall coverage rate: 36 of 64 lines (56.2%)
The lcov file should contain each source file with or absolute paths or paths
relative the the folder in which the command is executed.
As JInjector cannot know where the source files were located before the
compilation
each file is reported in the form:
SF:package/ClassName.java
If all the source files where in the same directory then it would be enough to
execute genhtml from the source directory, as in the example application.
If the files included in the coverage report comes from multiple directory
(e.g. from
src and tests) before collecting coverage it would be necessary to pre-process
the
file and modify the path.
We will add a shell script to do so.
Original comment by michele.sama
on 26 Mar 2009 at 7:52
[deleted comment]
I added a shell script to generate coverage automatically.
Original comment by michele.sama
on 22 Apr 2009 at 11:52
Original issue reported on code.google.com by
dstaras...@gmail.com
on 25 Mar 2009 at 11:35Attachments: