[jbpm-commits] JBoss JBPM SVN: r5947 - jbpm4/trunk/modules/test-db.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Dec 11 04:10:40 EST 2009


Author: jbarrez
Date: 2009-12-11 04:10:40 -0500 (Fri, 11 Dec 2009)
New Revision: 5947

Modified:
   jbpm4/trunk/modules/test-db/pom.xml
Log:
Initial commit for JBPM-2631: hudson job for spring. Added profile to test-db to execute tests with Spring.

Modified: jbpm4/trunk/modules/test-db/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-db/pom.xml	2009-12-11 09:08:28 UTC (rev 5946)
+++ jbpm4/trunk/modules/test-db/pom.xml	2009-12-11 09:10:40 UTC (rev 5947)
@@ -99,10 +99,12 @@
         </executions>
       </plugin>
       
-      <!--             <exclude>org/jbpm/bpmn/flownodes/ExclusiveGatewayTest.java</exclude>
-            <exclude>org/jbpm/bpmn/flownodes/ScriptTaskTest.java</exclude>
-            <exclude>org/jbpm/bpmn/flownodes/UserTaskTest.java</exclude>
-       -->
+      <plugin> 
+        <artifactId>maven-surefire-plugin</artifactId> 
+        <configuration> 
+            <forkMode>never</forkMode>  <!-- Without this setting, mvn 2.1.0 doesn't copy command line properties sometimes -->
+         </configuration> 
+       </plugin> 
       
     </plugins>
   </build>
@@ -155,6 +157,55 @@
         </plugins>
       </build>
     </profile>
+    
+    <!-- Note: Spring profile cannot be used together with 'database' 
+         property currently (see http://jira.codehaus.org/browse/MNG-3328) -->
+    <profile>
+      <id>run.spring.testsuite</id>
+      <activation>
+        <property>
+          <name>jbpm.test.cfg.type</name>
+          <value>spring-test</value>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>spring-test-cfg-customization</id>
+                <phase>test-compile</phase>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+                <configuration>
+                  <tasks>
+	                  <echo message="config ${config}" />
+	                    <mkdir dir="target/jdbc.properties" />
+	                    <copy todir="target/jdbc.properties" overwrite="true">
+	                      <fileset dir="../../qa/jdbc" />
+	                    </copy>
+	                    <copy todir="target/jdbc.properties" overwrite="true" failonerror="false">
+	                      <fileset dir="${user.home}/.jbpm4/jdbc" />
+	                    </copy>
+	                    <ant antfile="../distro/src/main/files/install/build.xml" target="create.cfg">
+	                      <property name="tx" value="spring.testsuite" />
+	                      <property name="mail.cfg" value="testsuite" />
+	                      <property name="database" value="hsqldb" /> <!-- Spring config is tested against hsqldb only -->
+	                      <property name="cfg.dest.dir" value="target/test-classes" />
+	                      <property name="install.src.dir" value="../distro/src/main/files/install/src" />
+	                      <property name="jdbc.properties.dir" value="target/jdbc.properties" />
+	                      <property name="logging" value="none" />                      
+	                    </ant> 
+                  </tasks>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
 
   </profiles>
 



More information about the jbpm-commits mailing list