You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2009/12/09 17:05:34 UTC
svn commit: r888851 - in /ofbiz/trunk: common.xml framework/base/build.xml
macros.xml
Author: doogie
Date: Wed Dec 9 16:05:33 2009
New Revision: 888851
URL: http://svn.apache.org/viewvc?rev=888851&view=rev
Log:
Add a target for per-component quick testing. Can only deal with tests
that can run standalone.
Modified:
ofbiz/trunk/common.xml
ofbiz/trunk/framework/base/build.xml
ofbiz/trunk/macros.xml
Modified: ofbiz/trunk/common.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/common.xml?rev=888851&r1=888850&r2=888851&view=diff
==============================================================================
--- ofbiz/trunk/common.xml (original)
+++ ofbiz/trunk/common.xml Wed Dec 9 16:05:33 2009
@@ -27,6 +27,13 @@
<property name="lib.dir" value="lib"/>
<property name="build.dir" value="build"/>
+ <path id="test.class.path">
+ <path refid="local.class.path"/>
+ <pathelement location="${build.dir}/classes"/>
+ <pathelement location="config"/>
+ </path>
+ <filelist id="test.classes"/>
+
<!-- ================================================================== -->
<!-- Removes all created files and directories -->
<!-- ================================================================== -->
@@ -76,5 +83,20 @@
</jar>
</target>
+ <target name="tests" depends="jar">
+ <mkdir dir="${build.dir}/test-results"/>
+ <junit>
+ <classpath>
+ <path refid="junit.class.path"/>
+ <path refid="test.class.path"/>
+ </classpath>
+ <sysproperty key="ofbiz.home" value="${ofbiz.home.dir}"/>
+ <formatter usefile="false" type="plain"/>
+ <batchtest>
+ <filelist refid="test.classes"/>
+ </batchtest>
+ </junit>
+ </target>
+
<target name="all" depends="jar,docs"/>
</project>
Modified: ofbiz/trunk/framework/base/build.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/build.xml?rev=888851&r1=888850&r2=888851&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/build.xml (original)
+++ ofbiz/trunk/framework/base/build.xml Wed Dec 9 16:05:33 2009
@@ -36,6 +36,10 @@
<fileset dir="../start/build/lib" includes="*.jar"/>
</path>
+ <filelist id="test.classes" dir="${src.dir}">
+ <file name="org/ofbiz/base/test/BaseUnitTests.java"/>
+ </filelist>
+
<!-- ================================================================== -->
<!-- Compilation of the source files -->
<!-- ================================================================== -->
Modified: ofbiz/trunk/macros.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/macros.xml?rev=888851&r1=888850&r2=888851&view=diff
==============================================================================
--- ofbiz/trunk/macros.xml (original)
+++ ofbiz/trunk/macros.xml Wed Dec 9 16:05:33 2009
@@ -43,6 +43,10 @@
<path id="ant.lib.class.path">
<pathelement location="${ofbiz.home.dir}/framework/base/lib/ant/ant-nodeps-1.7.0.jar"/>
</path>
+ <path id="junit.class.path">
+ <fileset dir="${ofbiz.home.dir}/framework/base/lib/scripting/" includes="*.jar"/>
+ <pathelement location="${ofbiz.home.dir}/framework/base/lib/ant/ant-apache-bsf-1.7.0.jar"/>
+ </path>
<path id="local.class.path"/>
<presetdef name="default-javac">