[Yanel-commits] rev 53515 -
public/yanel/trunk/src/build/resource-types
michi at wyona.com
michi at wyona.com
Mon Sep 27 12:00:16 CEST 2010
Author: michi
Date: 2010-09-27 12:00:15 +0200 (Mon, 27 Sep 2010)
New Revision: 53515
Modified:
public/yanel/trunk/src/build/resource-types/resource-type.build.xml
Log:
test results and path to test sources fixed, but classpath is not fixed yet
Modified: public/yanel/trunk/src/build/resource-types/resource-type.build.xml
===================================================================
--- public/yanel/trunk/src/build/resource-types/resource-type.build.xml 2010-09-27 08:45:27 UTC (rev 53514)
+++ public/yanel/trunk/src/build/resource-types/resource-type.build.xml 2010-09-27 10:00:15 UTC (rev 53515)
@@ -204,22 +204,24 @@
</copy>
</target>
- <target name="junit" description="Run junit tests">
+ <target name="junit" depends="init" description="Run junit tests">
<!--
<target name="junit" depends="build" description="Run junit tests">
-->
<echo>TODO: Running the junit tests of resource-type with root directory set to ${resource.home.dir}</echo>
+ <property name="test.results.dir" value="${resource.build.dir}/test-results"/>
+ <mkdir dir="${test.results.dir}"/>
+ <junit fork="yes" printsummary="yes" haltonfailure="no" failureproperty="junit.tests.failed">
<!--
- <junit fork="yes" printsummary="yes" haltonfailure="no" failureproperty="junit.tests.failed">
<batchtest todir="${test.results.dir}" unless="test.class.name">
<fileset dir="${junit.build.dir}" includes="**/*Test.class" excludes="**/Abstract*.class"/>
</batchtest>
+-->
<test todir="${test.results.dir}" name="${test.class.name}" if="test.class.name"/>
<formatter type="plain" usefile="false"/>
<formatter type="xml"/>
<classpath refid="classpath" />
- <jvmarg value="-Djunit.base.dir=${basedir}/junit"/>
+ <jvmarg value="-Djunit.base.dir=${resource.home.dir}/src/test/junit"/>
</junit>
--->
</target>
</project>
More information about the Yanel-commits
mailing list