diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index f21fc315943..19dadfd622f 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -2046,7 +2046,7 @@ org.apache.maven.plugins maven-failsafe-plugin - 2.18 + 2.19.1 org.apache.maven.plugins diff --git a/spring-boot-starters/spring-boot-starter-parent/pom.xml b/spring-boot-starters/spring-boot-starter-parent/pom.xml index 86107ac1d5f..a00c07d6e36 100644 --- a/spring-boot-starters/spring-boot-starter-parent/pom.xml +++ b/spring-boot-starters/spring-boot-starter-parent/pom.xml @@ -61,6 +61,18 @@ + + org.apache.maven.plugins + maven-failsafe-plugin + + + + integration-test + verify + + + + org.apache.maven.plugins maven-jar-plugin diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/usage.apt.vm b/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/usage.apt.vm index b876ad9dc16..44f96101ddf 100644 --- a/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/usage.apt.vm +++ b/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/usage.apt.vm @@ -231,6 +231,54 @@ spring.devtools.remote.restart.enabled=false Such setup can now use the {{{http://maven.apache.org/surefire/maven-failsafe-plugin/}failsafe-plugin}} to run your integration tests as you would expect. + You could also configure a more advanced setup to skip the integration tests when a specific property has + been set: + +--- + + false + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + ${it.skip} + + + + ${project.groupId} + ${project.artifactId} + ${project.version} + + + pre-integration-test + + start + + + ${it.skip} + + + + post-integration-test + + stop + + + ${it.skip} + + + + + + +--- + + If you run <<>> your integration tests will be skipped altogether. + + For more detailed examples of how to configure this goal see: * {{{./examples/it-random-port.html}Random port for integration tests}}