Author: dgolovin
Date: 2010-11-23 19:56:43 -0500 (Tue, 23 Nov 2010)
New Revision: 26866
Modified:
trunk/build/reports/emma-coverage/pom.xml
Log:
https://jira.jboss.org/browse/JBIDE-7440 Between build #79 and #80, 874 tests disappeared
fix to restore coverage report, it actually moves coverage reports in es files to report
target folder to avoid reporting es files that might left from previous build
Modified: trunk/build/reports/emma-coverage/pom.xml
===================================================================
--- trunk/build/reports/emma-coverage/pom.xml 2010-11-23 23:51:46 UTC (rev 26865)
+++ trunk/build/reports/emma-coverage/pom.xml 2010-11-24 00:56:43 UTC (rev 26866)
@@ -41,16 +41,21 @@
<tasks>
<taskdef resource="emma_ant.properties" />
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
-
+ <move todir="${project.build.directory}/emma">
+ <fileset dir="${basedir}/../../.."
includes="*/tests/*/target/emma/*.es" />
+ </move>
<if>
- <not>
- <isset property="maven.test.skip"/>
- </not>
+ <and>
+ <not>
+ <isset property="maven.test.skip"/>
+ </not>
+ <available type="dir"
file="${project.build.directory}/emma" />
+ </and>
<then>
<echo>Process emma report...</echo>
<emma enabled="true">
<report>
- <infileset dir="${basedir}/../../.."
includes="*/tests/*/target/emma/*.es" />
+ <infileset dir="${project.build.directory}/emma"
includes="*/tests/*/target/emma/*.es" />
<txt outfile="${project.build.directory}/coverage.txt" />
<xml outfile="${project.build.directory}/coverage.xml" />
<html outfile="${project.build.directory}/coverage.html" />
@@ -61,6 +66,9 @@
failonerror="false" />
<echo>${emma.txt}</echo>
</then>
+ <else>
+ <echo>No emma session files were found</echo>
+ </else>
</if>
</tasks>
</configuration>