You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jh...@apache.org on 2014/06/03 11:30:46 UTC

git commit: write test reports so we could see them in Jenkins

Repository: ant-antlibs-common
Updated Branches:
  refs/heads/master 6fbf64335 -> cb88d0c6b


write test reports so we could see them in Jenkins


Project: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/commit/cb88d0c6
Tree: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/tree/cb88d0c6
Diff: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/diff/cb88d0c6

Branch: refs/heads/master
Commit: cb88d0c6b96d2d3071ffa421e7509c4222761f3b
Parents: 6fbf643
Author: Jan Mat�rne <jh...@apache.org>
Authored: Tue Jun 3 11:30:13 2014 +0200
Committer: Jan Mat�rne <jh...@apache.org>
Committed: Tue Jun 3 11:30:13 2014 +0200

----------------------------------------------------------------------
 build.xml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/blob/cb88d0c6/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index a3e3fc4..5af8d26 100644
--- a/build.xml
+++ b/build.xml
@@ -69,6 +69,9 @@
     <property name="junit.forkmode" value="once" />
     <!-- Default to the location in the Ant installation -->
     <property name="ant-testutil.jar" value="${ant.home}/lib/ant-testutil.jar" />
+    <property name="report.dir" value="${build}/reports" />
+    <property name="antunit.report.dir" value="${report.dir}/antunit" />
+    <property name="junit.report.dir" value="${report.dir}/junit" />
   </target>
 
   <target name="setup" depends="setup-properties">
@@ -181,6 +184,7 @@
 
   <target name="junit-test" depends="ready-to-test-with-junit"
     unless="skip-junit">
+    <mkdir dir="${junit.report.dir}"/>
     <junit
       printsummary="false"
       haltonfailure="false"
@@ -196,10 +200,11 @@
         <pathelement location="${build.testclasses}"/>
       </classpath>
 
-      <batchtest>
+      <batchtest todir="${junit.report.dir}">
         <fileset dir="${src.junit}"/>
       </batchtest>
 
+      <formatter type="xml"/>
       <formatter type="plain" usefile="false"/>
     </junit>
   </target>
@@ -213,6 +218,7 @@
 
     <property name="antunit.excludes" value="" />
 
+    <mkdir dir="${antunit.report.dir}" />
     <au:antunit xmlns:au="antlib:org.apache.ant.antunit"
       failOnError="false"
       errorProperty="antunit.tests.failed"
@@ -220,6 +226,7 @@
       <fileset dir="${src.antunit}" includes="${antunit.includes}"
                excludes="${antunit.excludes}" />
 
+      <au:xmllistener todir="${antunit.report.dir}" />
       <au:plainlistener/>
     </au:antunit>
   </target>