Author: danielf Date: Thu Apr 7 13:22:33 2005 New Revision: 160455 URL: http://svn.apache.org/viewcvs?view=rev&rev=160455 Log: Excluded the base class SitemapTestCase from testing and added the target core-junit-test for testing a single case.
Modified: cocoon/trunk/tools/targets/test-build.xml Modified: cocoon/trunk/tools/targets/test-build.xml URL: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/test-build.xml?view=diff&r1=160454&r2=160455 ============================================================================== --- cocoon/trunk/tools/targets/test-build.xml (original) +++ cocoon/trunk/tools/targets/test-build.xml Thu Apr 7 13:22:33 2005 @@ -56,10 +56,27 @@ <exclude name="**/*$$*Test.class" /> <exclude name="**/Abstract*.class" /> <exclude name="**/SitemapComponentTestCase*"/> + <exclude name="**/SitemapTestCase*"/> <exclude name="**/ContainerTestCase*"/> <exclude name="**/CocoonTestCase*"/> </fileset> </batchtest> + </junit> + </target> + + <!-- Runs one JUnit test --> + <target name="core-junit-test" depends="compile-tests, junit-tests-prepare"> + <fail unless="junit.testcase" + message="Please set the property $${junit.testcase} to a JUnit testcase (package.Classname, e.g. org.test.MyTestCase)."/> + <junit printsummary="yes" fork="yes" failureproperty="junit.test.failed"> + <jvmarg value="-Djava.endorsed.dirs=lib/endorsed"/> + <jvmarg value="-Djunit.test.loglevel=${junit.test.loglevel}"/> + <classpath> + <path refid="test.classpath"/> + </classpath> + <formatter type="plain" usefile="no"/> + <formatter type="xml"/> + <test name="${junit.testcase}" todir="${build.test.output}"/> </junit> </target>