I am able to generate coverage report using ant script but i don't see report
formats with hightlighted source code . Basically I want to drill down to
source code and see what all lines are covered and all but thats not happening.
My ant script looks like this
<?xml version="1.0" encoding="UTF-8"?>
<project name="Example Ant Build with JaCoCo" default="rebuild"
xmlns:jacoco="antlib:org.jacoco.ant">
<description>
Example Ant build file that demonstrates how a JaCoCo coverage report
can be itegrated into an existing build in three simple steps.
</description>
<property name="result.dir" location="C:/Users/CodeCoverage/jacoco" />
<property name="result.classes.dir" location="${result.dir}/classes" />
<property name="result.report.dir" location="${result.dir}/reports" />
<property name="result.exec.file"
location="${result.dir}/destfile/jacoco.exec" />
<property name="src.dir" location="${result.dir}/source" />
<!-- Step 1: Import JaCoCo Ant tasks -->
<taskdef uri="antlib:org.jacoco.ant"
resource="org/jacoco/ant/antlib.xml">
<classpath
path="C:/Users/CodeCoverage/jacoco/lib/jacocoant.jar" />
</taskdef>
<target name="report" >
<!-- Step 3: 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="${result.classes.dir}"
includes="**/*.class"/>
</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>
</project>
--
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.