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.

Reply via email to