-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
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.