svn commit: r14102 - trunk/src/build.xml
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: linus
Date: 2008-02-09 21:34:16-0800
New Revision: 14102
Modified:
trunk/src/build.xml
Log:
Create a common test report from all subsystem's tests.
Modified: trunk/src/build.xml
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/build.xml?view=diff&rev=14102&p1=trunk/src/build.xml&p2=trunk/src/build.xml&r1=14101&r2=14102
==============================================================================
--- trunk/src/build.xml (original)
+++ trunk/src/build.xml 2008-02-09 21:34:16-0800
@@ -157,6 +157,8 @@
<property file="${override.build.properties}"/>
<property file="default.properties"/>
+ <property name="tests.reports" value="${argo.build.dir}/tests"/>
+
<path id="java.tools.classpath">
<pathelement path="${JAVA_HOME}/lib/tools.jar"/>
</path>
@@ -314,17 +316,31 @@
<!-- Run tests in all subdirectories. -->
<!-- Order is important. -->
<!-- =================================================================== -->
- <target name="tests"
+ <target name="tests"
description="Run tests.">
<!-- Build the subdirs in order. -->
- <ant dir="infra" inheritAll="false" target="tests"/>
- <ant dir="model" inheritAll="false" target="tests"/>
+ <!-- infra doesn't have tests. -->
+ <!-- model doesn't have tests. -->
<ant dir="model-mdr" inheritAll="false" target="tests"/>
<!-- <ant dir="model-euml" inheritAll="false" target="tests"/> -->
<ant dir="app" inheritAll="false" target="tests"/>
+
+ <ant target="tests-reports"/>
</target>
+ <target name="tests-reports" depends="init">
+ <mkdir dir="${tests.reports}"/>
+
+ <junitreport todir="${tests.reports}">
+ <fileset dir=".">
+ <include name="*/build/tests/reports/**/TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${tests.reports}/html"/>
+ </junitreport>
+ </target>
+
+
<!-- =================================================================== -->
<!-- Clean all subdirectories. -->
<!-- =================================================================== -->