Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18745

Migrate the multiple command steps for running quickstart integration tests into plugin executions

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Quickstarts
    • None
    • ---
    • ---

      Currently the follow steps are required to run integration tests for the quickstart updates:

      mvn clean package -Pprovisioned-server
      mvn wildfly:start
      mvn verify
      mvn wildfly:shutdown
      

      This should really be done in the in plugin executions. Something like:

      <profile>
          <id>integration-testing</id>
          <build>
              <plugins>
                  <plugin>
                      <artifactId>maven-failsafe-plugin</artifactId>
                      <configuration>
                          <includes>
                              <include>**/*IT</include>
                          </includes>
                      </configuration>
                      <executions>
                          <execution>
                              <goals>
                                  <goal>integration-test</goal>
                                  <goal>verify</goal>
                              </goals>
                          </execution>
                      </executions>
                  </plugin>
                  <plugin>
                      <groupId>org.wildfly.plugins</groupId>
                      <artifactId>wildfly-maven-plugin</artifactId>
                      <executions>
                          <execution>
                              <id>start-and-deploy</id>
                              <phase>pre-integration-test</phase>
                              <goals>
                                  <goal>start</goal>
                                  <goal>deploy</goal>
                              </goals>
                          </execution>
                          <execution>
                              <id>undeploy-and-shutdown</id>
                              <phase>post-integration-test</phase>
                              <goals>
                                  <goal>undeploy</goal>
                                  <goal>shutdown</goal>
                              </goals>
                          </execution>
                      </executions>
                  </plugin>
              </plugins>
          </build>
      </profile>
      

      You would then simply run the tests like:

      mvn clean verify -Pprovisioned-server -Pintergration-testing
      

      This seems somewhat critical for CI environments where a failed test could leave a server running and cause subsequent tests to fail.

            istudens@redhat.com Ivo Studensky
            jperkins-rhn James Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: