vgritsenko 2003/08/08 06:15:42
Modified: . build.xml
Log:
Allow to run only one integration test separately and generate a report.
Now, "build test" runs all tests and generates report,
and "build test-integration-embed test-report" runs one test and generates
report for it.
Revision Changes Path
1.56 +12 -5 xml-xindice/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-xindice/build.xml,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- build.xml 7 Aug 2003 17:47:28 -0000 1.55
+++ build.xml 8 Aug 2003 13:15:42 -0000 1.56
@@ -228,21 +228,25 @@
<junit fork="yes" printsummary="yes" haltonfailure="no">
<jvmarg
value="-DPropertyManager.file=${test.dir}/config/test-configuration.props"/>
<jvmarg value="-Dxindice.home=${basedir}"/>
+ <jvmarg value="-Dxindice.db.home=${basedir}"/>
+ <jvmarg
value="-Dxindice.configuration=${basedir}/config/system.xml"/>
- <!-- to show debug logging on screen comment this line and
uncomment the next block -->
+ <!-- to show debug logging on screen comment this line and
uncomment the next block -->
<jvmarg
value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog"/>
<!--
<jvmarg
value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog"/>
<jvmarg
value="-Dorg.apache.commons.logging.simplelog.defaultlog=debug"/>
- <formatter type="plain" usefile="no"/>
-->
+ <formatter type="plain" usefile="no"/>
+ <formatter type="xml"/>
+
<classpath>
<path refid="project.class.path"/>
<pathelement location="${test.build.dir}"/>
</classpath>
- <formatter type="xml"/>
+
<test name="org.apache.xindice.IntegrationEmbedTests"
outfile="${test.report.dir}/org.apache.xindice.IntegrationEmbedTests"/>
</junit>
</target>
@@ -325,13 +329,16 @@
depends="test-unit, test-embed-binary, test-integration-embed,
test-integration-xmlrpc, test-integration-managed">
</target>
- <target name="test" depends="test-all">
+ <target name="test-report" depends="init">
<junitreport todir="${test.report.dir}">
<fileset dir="${test.report.dir}">
<include name="*.xml"/>
</fileset>
<report format="frames" todir="${reports.dir}/test"/>
</junitreport>
+ </target>
+
+ <target name="test" depends="test-all, test-report">
</target>
<target name="test-clean">