Created
December 3, 2010 19:25
-
-
Save pedrotoliveira/727412 to your computer and use it in GitHub Desktop.
Cobertura Targets NetBeans - Targets Ant Cobertura
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Cobertura Classpath --> | |
<path id="cobertura.classpath"> | |
<fileset dir="${basedir}"> | |
<include name="dev_libs/cobertura-1.9.4.1/cobertura.jar" /> | |
<include name="dev_libs/cobertura-1.9.4.1/lib/**/*.jar" /> | |
</fileset> | |
</path> | |
<taskdef classpathref="cobertura.classpath" resource="tasks.properties"/> | |
<!-- Cobertura Instrumentations --> | |
<target name="cobertura-instrument" depends="init,compile,compile-test,-pre-test-run"> | |
<cobertura-instrument todir="${build.test.cobertura.classes.dir}"> | |
<fileset dir="${build.classes.dir}"> | |
<include name="**/*.class"/> | |
</fileset> | |
</cobertura-instrument> | |
</target> | |
<!-- Cobertura Target --> | |
<target name="cobertura-test-coverage" | |
depends="init,compile,compile-test,-pre-test-run,cobertura-instrument, | |
-do-test-run"/> | |
<!-- Cobertura Report --> | |
<target name="cobertura-coverage-report" depends="init"> | |
<cobertura-report srcdir="${src.dir}" destdir="${cobertura.report.dir}"/> | |
<delete file="Serialized" failonerror="false"/> | |
<delete file="cobertura.ser" failonerror="false"/> | |
</target> | |
<!-- JUnit Reports --> | |
<target name="generate-report-test-html" depends="-pre-init,-init-private,-init-user,-init-project,-do-init"> | |
<mkdir dir="${test.reports.dir}" /> | |
<junitreport todir="${test.reports.dir}"> | |
<fileset dir="${build.test.results.dir}"> | |
<include name="TEST-*.xml" /> | |
</fileset> | |
<report todir="${test.reports.dir}" /> | |
</junitreport> | |
</target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment