[jboss-cvs] jboss-seam ...
Shane Bryzak
Shane_Bryzak at symantec.com
Thu Nov 9 00:50:25 EST 2006
User: sbryzak2
Date: 06/11/09 00:50:25
Modified: jboss-seam build.xml
Log:
added corecoverage target to generate coverage for core unit tests only
Revision Changes Path
1.102 +48 -30 jboss-seam/build.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/build.xml,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -b -r1.101 -r1.102
--- build.xml 9 Nov 2006 04:29:40 -0000 1.101
+++ build.xml 9 Nov 2006 05:50:25 -0000 1.102
@@ -575,6 +575,24 @@
</target>
+ <target name="corecoverage" depends="instrument,testcore"
+ description="Generate a test coverage report for the core tests">
+
+ <!-- Move the runtime coverage metadata to the coverage dir -->
+ <move file="coverage.ec" todir="${coverage.dir}"/>
+
+ <!-- Generate code coverage report -->
+ <emma>
+ <report sourcepath="${src.java.dir}" depth="method">
+ <infileset dir="${coverage.dir}" includes="coverage.em,coverage.ec" />
+ <html outfile="./report/coverage.html"/>
+ </report>
+ </emma>
+
+ <echo>Code coverage report for core classes available at ${basedir}/report/coverage.html</echo>
+
+ </target>
+
<target name="copyexamples" description="Copy examples to dist dir">
<copy todir="${dist.dir}/examples">
<fileset dir="${imported.basedir}/examples">
More information about the jboss-cvs-commits
mailing list