You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jacoco.xml 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0"?>
  2. <project xmlns:jacoco="antlib:org.jacoco.ant" name="JaCoCo" default="coverage-report">
  3. <import file="build.xml"/>
  4. <property name="jacoco.report.dir" value="${build.dir}/report_jacoco"/>
  5. <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
  6. <classpath location="${jacocoant.jar}"/>
  7. </taskdef>
  8. <target name="test-coverage" depends="junit-compile">
  9. <jacoco:coverage destfile="${jacoco.report.dir}/jacoco.exec">
  10. <junit dir="${basedir}" haltonfailure="yes" fork="on" forkmode="once">
  11. <sysproperty key="jawa.awt.headless" value="true"/>
  12. <classpath>
  13. <path refid="standard-junit-classpath"/>
  14. </classpath>
  15. <batchtest>
  16. <fileset dir="${build.unit.tests.dir}" includes="**/*TestCase.class"/>
  17. </batchtest>
  18. </junit>
  19. </jacoco:coverage>
  20. </target>
  21. <target name="coverage-report" depends="test-coverage"
  22. description="Runs JaCoCo for a code coverage report">
  23. <jacoco:report>
  24. <executiondata>
  25. <file file="${jacoco.report.dir}/jacoco.exec"/>
  26. </executiondata>
  27. <structure name="Apache FOP">
  28. <classfiles>
  29. <fileset dir="${build.classes.dir}"/>
  30. </classfiles>
  31. <sourcefiles>
  32. <fileset dir="${src.java.dir}"/>
  33. </sourcefiles>
  34. </structure>
  35. <html destdir="${jacoco.report.dir}"/>
  36. </jacoco:report>
  37. </target>
  38. </project>