Author: jacopoc
Date: Wed Apr 11 08:32:10 2012
New Revision: 1324630
URL:
http://svn.apache.org/viewvc?rev=1324630&view=revLog:
Added checks for required input arguments for run-test and run-test-suite targets
Modified:
ofbiz/trunk/build.xml
Modified: ofbiz/trunk/build.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=1324630&r1=1324629&r2=1324630&view=diff==============================================================================
--- ofbiz/trunk/build.xml (original)
+++ ofbiz/trunk/build.xml Wed Apr 11 08:32:10 2012
@@ -924,6 +924,8 @@ under the License.
</target>
<target name="run-test" depends="build"
description="Run a single test, syntax eg: ant run-test -Dtest.component=service -Dtest.case=service-soap-tests">
+ <fail unless="test.component">test.component is a required parameter: -Dtest.component=componentname</fail>
+ <fail unless="test.case">test.case is a required parameter: -Dtest.case=testcasename</fail>
<java jar="ofbiz.jar" fork="true" resultproperty="test.result">
<jvmarg value="${memory.initial.param}"/>
<jvmarg value="${memory.max.param}"/>
@@ -948,6 +950,8 @@ under the License.
</target>
<target name="run-test-suite" depends="build"
description="Run a single test suite, syntax eg: ant run-test-suite -Dtest.component=mycomponent -Dtest.suiteName=mytests">
+ <fail unless="test.component">test.component is a required parameter: -Dtest.component=componentname</fail>
+ <fail unless="test.case">test.suiteName is a required parameter: -Dtest.suiteName=testsuitename</fail>
<java jar="ofbiz.jar" fork="true" resultproperty="test.result">
<jvmarg value="${memory.initial.param}"/>
<jvmarg value="${memory.max.param}"/>