Please see documentation:
http://www.eclemma.org/jacoco/trunk/doc/faq.html
Why does a class show as not covered although it has been executed?
First make sure execution data has been collected. For this select the
Sessions link on the top right corner of the HTML report and check
whether the class in question is listed. If it is listed but not linked
the class at execution time is a different class file. Make sure you're
using the exact same class file at runtime as for report generation.
Note that some tools (e.g. EJB containers, mocking frameworks) might
modify your class files at runtime.
On 2014-03-11 07:02, shivu J wrote:
Hi Marc,
I need one information on jacoco code coverage.
I generated the jacoco.exec from server then I took into local
machine and then I run the ant report target but report showing 0%
coverage.
My ant code is like this:
<target name="report">
<!-- Step 2. Create coverage report -->
<jacoco:report>
<!-- This task needs the
collected execution data and ... -->
<executiondata>
<file
file="${result.exec.file}"/>
</executiondata>
<!-- the class files and
optional source files ... -->
<structure name="JaCoCo Ant
Example">
<classfiles>
<fileset
dir="${class.dir}" includes="**/*.class"/>
<!-- <fileset dir="${lib.dir}"
includes="**/*.jar"/> -->
</classfiles>
<sourcefiles
encoding="UTF-8">
<fileset
dir="${src.dir}"/>
</sourcefiles>
</structure>
<!-- to produce reports in
different formats. -->
<html
destdir="${result.report.dir}" />
<csv
destfile="${result.report.dir}/report.csv" />
<xml
destfile="${result.report.dir}/report.xml" />
</jacoco:report>
</target>
Please can you help on this.
Thanks in advance.
--
You received this message because you are subscribed to the Google
Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected].
For more options, visit https://groups.google.com/d/optout [1].
Links:
------
[1] https://groups.google.com/d/optout
--
You received this message because you are subscribed to the Google Groups "JaCoCo
and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.