User: starksm Date: 02/02/16 13:11:39 Modified: . build.xml Log: Add a one-test-nojars that allows for running a single test case without having to rebuild every time. Revision Changes Path 1.68 +41 -1 jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.67 retrieving revision 1.68 diff -u -r1.67 -r1.68 --- build.xml 15 Feb 2002 18:21:55 -0000 1.67 +++ build.xml 16 Feb 2002 21:11:38 -0000 1.68 @@ -27,7 +27,7 @@ <!-- tests-jmxri-compliance still needs to run over jmxri.jar --> <!-- the aim of that test is to check our compliance suite. --> -<!-- $Id: build.xml,v 1.67 2002/02/15 18:21:55 starksm Exp $ --> +<!-- $Id: build.xml,v 1.68 2002/02/16 21:11:38 starksm Exp $ --> <project default="main" name="JBoss/Testsuite"> @@ -2504,6 +2504,46 @@ </junit> </target> + <!-- + | Run a single testcase by specifing the fully qualified class name + | of the unit test using the test property, -Dtest=org.jboss.test.... + | Here you specify the testcase class, not the directory. This + version does not rebuild the test jars every time. + --> + <target name="one-test-nojars" depends="init" if="test" + description="Execute a single test without rebuilding."> + <mkdir dir="${build.reports}"/> + <mkdir dir="${build.testlog}"/> + <junit dir="${module.output}" + printsummary="${junit.printsummary}" + haltonerror="${junit.haltonerror}" + haltonfailure="${junit.haltonfailure}" + fork="${junit.fork}" + timeout="${junit.timeout}" + jvm="${junit.jvm}"> + + <jvmarg value="${junit.jvm.options}"/> + <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/> + <sysproperty key="log4j.properties" file="${build.resources}/log4j.properties"/> + <sysproperty key="jbosstest.threadcount" value="${jbosstest.threadcount}"/> + <sysproperty key="jbosstest.iterationcount" value="${jbosstest.iterationcount}"/> + <sysproperty key="jbosstest.beancount" value="${jbosstest.beancount}"/> + + <classpath> + <pathelement location="${build.classes}"/> + <pathelement location="${build.resources}"/> + <path refid="tests.classpath"/> + </classpath> + + <formatter classname="org.jboss.ant.taskdefs.XMLJUnitResultFormatter" + extension=".xml" usefile="${junit.formatter.usefile}"/> + + <test todir="${build.reports}" name="${test}" + haltonerror="${junit.batchtest.haltonerror}" + haltonfailure="${junit.batchtest.haltonfailure}" + fork="${junit.batchtest.fork}"/> + </junit> + </target> <!-- | Generates reports from JUnit output.
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development