dandycheung / jinjector

Automatically exported from code.google.com/p/jinjector
0 stars 0 forks source link

.lcov file isn't readable by genhtml #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Instrument TimeMIDlet app with attached jinjector properties file
2. Run resulting jar
3. Run genhtml on resulting .lcov1 file (attached)

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by dstaras...@gmail.com on 25 Mar 2009 at 11:35

Attachments:

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I added a shell script to generate coverage automatically.

Original comment by michele.sama on 22 Apr 2009 at 11:52