[jboss-svn-commits] JBoss Common SVN: r3061 - jbossxb/trunk.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Mar 12 04:48:32 EDT 2009


Author: alex.loubyansky at jboss.com
Date: 2009-03-12 04:48:31 -0400 (Thu, 12 Mar 2009)
New Revision: 3061

Modified:
   jbossxb/trunk/pom.xml
Log:
JBXB-188 run the testsuite twice with useUnorderedSequence true and false

Modified: jbossxb/trunk/pom.xml
===================================================================
--- jbossxb/trunk/pom.xml	2009-03-12 08:33:36 UTC (rev 3060)
+++ jbossxb/trunk/pom.xml	2009-03-12 08:48:31 UTC (rev 3061)
@@ -28,16 +28,48 @@
       <plugin>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
-          <testFailureIgnore>true</testFailureIgnore>
-          <redirectTestOutputToFile>true</redirectTestOutputToFile>
-          <includes>
-            <include>**/*TestCase.java</include>
-          </includes>
-          <!-- forkMode>pertest</forkMode -->
+           <!-- the tessuite will be run twice.
+                the first/default execution will run with the default xb configuration
+                if there are failures, the next execution won't be run -->
+           <testFailureIgnore>false</testFailureIgnore>
+           <redirectTestOutputToFile>true</redirectTestOutputToFile>
+           <includes>
+              <include>**/*TestCase.java</include>
+           </includes>
+           <excludes>
+              <exclude>org/jboss/test/xml/RepeatedElementsUnitTestCase.java</exclude> <!-- JBXB-88 -->
+              <exclude>org/jboss/test/xb/builder/object/type/jbossxmlmodelgroup/test/RepeatablePropertyAllUnmarshallingTestCase.java</exclude> <!-- JBXB-193 -->
+           </excludes>
         </configuration>
+        <executions>
+           <execution>
+              <!-- this execution will run with xb.builder.useUnorderedSequence=true
+                   the reports from the previous testsuite run will be overriden
+                   which is ok, since if the previous execution fails, this execution shouldn't start -->
+              <id>unordered-sequence-true-test</id>
+              <goals>
+                 <goal>test</goal>
+              </goals>
+              <configuration>
+                 <testFailureIgnore>false</testFailureIgnore>
+                 <redirectTestOutputToFile>true</redirectTestOutputToFile>
+                 <excludes>
+                    <exclude>org/jboss/test/xml/RepeatedElementsUnitTestCase.java</exclude> <!-- JBXB-88 -->
+                    <exclude>org/jboss/test/xb/builder/object/type/jbossxmlmodelgroup/test/RepeatablePropertyAllUnmarshallingTestCase.java</exclude> <!-- JBXB-193 -->
+                    <exclude>org/jboss/test/xb/builder/object/type/jbossxmlmodelgroup/test/RepeatablePropertySequenceUnmarshallingTestCase.java</exclude> <!-- unordered sequence makes it JBXB-193 -->
+                 </excludes>
+                 <systemProperties>
+                    <property>
+                       <name>xb.builder.useUnorderedSequence</name>
+                       <value>true</value>
+                    </property>
+                 </systemProperties>
+              </configuration>
+            </execution>
+         </executions>
       </plugin>    
     </plugins>
-  </build>  
+  </build>
   <repositories>
     <repository>
       <id>repository.jboss.org</id>




More information about the jboss-svn-commits mailing list