geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r891238 - /geronimo/server/branches/2.2/testsuite/pom.xml
Date Wed, 16 Dec 2009 13:57:20 GMT
Author: dwoods
Date: Wed Dec 16 13:57:19 2009
New Revision: 891238

URL: http://svn.apache.org/viewvc?rev=891238&view=rev
Log:
allow running testsuite components against an already running server

Modified:
    geronimo/server/branches/2.2/testsuite/pom.xml

Modified: geronimo/server/branches/2.2/testsuite/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/testsuite/pom.xml?rev=891238&r1=891237&r2=891238&view=diff
==============================================================================
--- geronimo/server/branches/2.2/testsuite/pom.xml (original)
+++ geronimo/server/branches/2.2/testsuite/pom.xml Wed Dec 16 13:57:19 2009
@@ -39,6 +39,24 @@
         Geronimo integration testsuite.
     </description>
 
+    <!--
+    NOTE: Override the following on the cmdline to only run specific 
+          testsuite buckets.
+
+          To run all tests against the default Jetty assembly -
+            mvn clean install -Pit,all-subprojects
+
+          To only run console-testsuite/advanced -
+            cd console-testsuite/advanced
+            mvn clean install -Pit,all-subprojects
+
+          To run console-testsuite/advanced against an already running server-
+            cd console-testsuite/advanced
+            mvn clean install -Pit-manual
+              or
+            mvn integration-test -Pit-manual
+    -->
+
     <properties>
         <!--
         NOTE: The default assembly is jetty, so exclude any tomcat tests by
@@ -314,6 +332,112 @@
             </build>
         </profile>
 
+        <!-- run the testsuite against an already running external server -->
+        <profile>
+            <id>it-manual</id>
+            <activation>
+                <activeByDefault>false</activeByDefault>
+            </activation>
+            <build>
+                <pluginManagement>
+                    <plugins>
+                        <plugin>
+                            <groupId>org.codehaus.mojo</groupId>
+                            <artifactId>shitty-maven-plugin</artifactId>
+                            <inherited>false</inherited>
+                            <configuration>
+                                <projects>
+                                    <fileset>
+                                        <directory>${project.basedir}</directory>
+                                        <includes>
+                                            <include>${shittyTestIncludes}</include>
+                                        </includes>
+                                        <excludes>
+                                            <exclude>${shittyTestExcludes}</exclude>
+                                        </excludes>
+                                    </fileset>
+                                </projects>
+                            </configuration>
+                            <executions>
+                                <execution>
+                                    <goals>
+                                        <goal>clean</goal>
+                                        <goal>install</goal>
+                                        <goal>test</goal>
+                                    </goals>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <plugin>
+                            <groupId>org.codehaus.mojo</groupId>
+                            <artifactId>selenium-maven-plugin</artifactId>
+                            <inherited>false</inherited>
+                            <executions>
+                                <execution>
+                                    <id>start</id>
+                                    <phase>pre-integration-test</phase>
+                                    <goals>
+                                        <goal>start-server</goal>
+                                    </goals>
+                                    <configuration>
+                                        <logOutput>true</logOutput>
+                                        <background>true</background>
+                                        <systemProperties>
+                                            <property>
+                                                <name>browser</name>
+                                                <value>${browser}</value>
+                                            </property>
+                                        </systemProperties>
+                                    </configuration>
+                                </execution>
+                                <execution>
+                                    <id>stop</id>
+                                    <phase>post-integration-test</phase>
+                                    <goals>
+                                        <goal>stop-server</goal>
+                                    </goals>
+                                </execution>
+                            </executions>
+                        </plugin>
+                        <!--
+                        NOTE: This horrible looking configuration sets up the surefire plugin
to
+                              not run tests durring the 'test' phase, but instead during
the
+                              'integration-test' phase.
+                        -->
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-surefire-plugin</artifactId>
+                            <configuration>
+                                <skip>true</skip>
+                            </configuration>
+                            <executions>
+                                <execution>
+                                    <id>test</id>
+                                    <phase>test</phase>
+                                    <goals>
+                                        <goal>test</goal>
+                                    </goals>
+                                    <configuration>
+                                        <skip>true</skip>
+                                    </configuration>
+                                </execution>
+                                <execution>
+                                    <id>integration</id>
+                                    <phase>integration-test</phase>
+                                    <goals>
+                                        <goal>test</goal>
+                                    </goals>
+                                    <configuration>
+                                        <skip>false</skip>
+                                    </configuration>
+                                </execution>
+                            </executions>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+            </build>
+        </profile>
+
         <profile>
             <id>testsuite-with-jetty</id>
             <activation>



Mime
View raw message