Fixed issue 12880 Create a ant task to call the webservices test
authorPriya Muthukumar <priya.muthukumar@openbravo.com>
Tue, 06 Apr 2010 14:01:49 +0200
changeset 6927 e39ee10c09c0
parent 6926 907297079fbe
child 6928 ba70331d074a
Fixed issue 12880 Create a ant task to call the webservices test
build.xml
src-test/org/openbravo/test/AllWebserviceTests.java
src/build.xml
--- a/build.xml	Tue Apr 06 13:26:11 2010 +0200
+++ b/build.xml	Tue Apr 06 14:01:49 2010 +0200
@@ -438,6 +438,10 @@
     <ant dir="${base.src}" target="run.all.tests" inheritAll="true" inheritRefs="true" />
   </target>
 
+  <target name="run.webservice.tests" depends="init">
+      <ant dir="${base.src}" target="run.webservice.tests" inheritAll="true" inheritRefs="true" />
+  </target>
+
   <target name="run.quick.tests" depends="init">
     <ant dir="${base.src}" target="run.quick.tests" inheritAll="true" inheritRefs="true" />
   </target>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-test/org/openbravo/test/AllWebserviceTests.java	Tue Apr 06 14:01:49 2010 +0200
@@ -0,0 +1,49 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html 
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License. 
+ * The Original Code is Openbravo ERP. 
+ * The Initial Developer of the Original Code is Openbravo SLU 
+ * All portions are Copyright (C) 2010 Openbravo SLU 
+ * All Rights Reserved. 
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+ */
+
+package org.openbravo.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.openbravo.test.webservice.BaseWSTest;
+import org.openbravo.test.webservice.PerformanceTest;
+import org.openbravo.test.webservice.WSReadTest;
+import org.openbravo.test.webservice.WSUpdateTest;
+
+/**
+ * This test suite should only contain test cases which are to run the weservices included in core.
+ * 
+ * 
+ */
+public class AllWebserviceTests {
+
+  public static Test suite() {
+    final TestSuite suite = new TestSuite("Test for org.openbravo.test.dal");
+    // $JUnit-BEGIN$
+
+    suite.addTestSuite(WSReadTest.class);
+    suite.addTestSuite(WSUpdateTest.class);
+    suite.addTestSuite(PerformanceTest.class);
+
+    // $JUnit-END$
+    return suite;
+  }
+
+}
--- a/src/build.xml	Tue Apr 06 13:26:11 2010 +0200
+++ b/src/build.xml	Tue Apr 06 14:01:49 2010 +0200
@@ -299,6 +299,14 @@
     </junit>
   </target>
 
+  <target name="run.webservice.tests" depends="compileSqlc,generate.entities.quick">
+    <junit printsummary="yes" haltonfailure="yes">
+      <classpath refid="project.class.path" />
+      <formatter type="plain" usefile="no"/>
+      <test name="org.openbravo.test.AllWebserviceTests" haltonfailure="no"/>
+    </junit>
+  </target>
+
   <target name="run.api.test.javascript">
   	<taskdef name="jstest" classname="org.openbravo.test.javascript.JavaScriptAntTest" classpathref="project.class.path" />
 	<property name="export" value="no" />