summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2006-10-31 14:11:38 +0000
committerMartin Ritchie <ritchiem@apache.org>2006-10-31 14:11:38 +0000
commit1b2b1f1db808dd4f9969484e94310ea33b5cd9fb (patch)
tree6d90c7fc15defe37e41273ddc8638d79fe7fb26d
parentb5196f5ddaa9e6f3ffc72b5711f7385a9f9e34ea (diff)
downloadqpid-python-1b2b1f1db808dd4f9969484e94310ea33b5cd9fb.tar.gz
Additions to build system to cause junit to produce a report
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@469491 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/java/broker/test/build-module.xml8
-rw-r--r--qpid/java/build.xml4
-rw-r--r--qpid/java/client/test/build-module.xml8
-rw-r--r--qpid/java/module.xml5
4 files changed, 24 insertions, 1 deletions
diff --git a/qpid/java/broker/test/build-module.xml b/qpid/java/broker/test/build-module.xml
index 3128b77249..8c971b9a26 100644
--- a/qpid/java/broker/test/build-module.xml
+++ b/qpid/java/broker/test/build-module.xml
@@ -29,4 +29,12 @@
</junit>
</target>
+ <target name="xmltest" depends="build">
+ <junit fork="yes" showoutput="true" haltonfailure="no">
+ <test name="org.apache.qpid.server.UnitTests"/>
+ <formatter type="xml" usefile="junit.report.xml"/>
+ <classpath refid="module.class.path"/>
+ </junit>
+ </target>
+
</project>
diff --git a/qpid/java/build.xml b/qpid/java/build.xml
index 91b39881a4..7142f7f308 100644
--- a/qpid/java/build.xml
+++ b/qpid/java/build.xml
@@ -45,6 +45,10 @@
<iterate target="test"/>
</target>
+ <target name="xmltest" description="execute unit tests and produce xml reports">
+ <iterate target="xmltest"/>
+ </target>
+
<target name="doc" description="produce javadoc for each module">
<iterate target="doc"/>
</target>
diff --git a/qpid/java/client/test/build-module.xml b/qpid/java/client/test/build-module.xml
index b177c8441a..8678338359 100644
--- a/qpid/java/client/test/build-module.xml
+++ b/qpid/java/client/test/build-module.xml
@@ -29,4 +29,12 @@
</junit>
</target>
+ <target name="xmltest" depends="build">
+ <junit fork="yes" showoutput="true" haltonfailure="no">
+ <test name="org.apache.qpid.client.AllClientUnitTests"/>
+ <formatter type="xml" usefile="junit.report.xml"/>
+ <classpath refid="module.class.path"/>
+ </junit>
+ </target>
+
</project>
diff --git a/qpid/java/module.xml b/qpid/java/module.xml
index 0a4470d483..af48d66ddf 100644
--- a/qpid/java/module.xml
+++ b/qpid/java/module.xml
@@ -19,7 +19,8 @@
<import file="common.xml"/>
- <map property="module" value="${basedir}">
+
+ <map property="module" value="${basedir}">
<globmapper from="${project.root}${file.separator}*" to="*"/>
</map>
@@ -166,6 +167,8 @@
<target name="test"/>
+ <target name="xmltest"/>
+
<uptodate property="doc.done" targetfile="${module.doc}/index.html">
<srcfiles dir="${module.src}" includes="**/*.java"/>
</uptodate>