[BAEL-4264] Surefire and Failsafe comparison (#10968)

* [BAEL-4264] Surefire and Failsafe comparison

* [BAEL-4264] Update tests

* [BAEL-4264] Move code to different module

* [BAEL-4264] Rename test

Co-authored-by: uzma khan <uzma.khan@nominet.uk>
This commit is contained in:
ukhan1980 2021-07-01 20:36:44 +01:00 committed by GitHub
parent 2c9bb8f04d
commit d500209eeb
2 changed files with 17 additions and 1 deletions

View File

@ -6,6 +6,7 @@
<artifactId>maven-integration-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>maven-integration-test</name>
<packaging>war</packaging>
<parent>
<groupId>com.baeldung</groupId>
@ -116,7 +117,9 @@
<goal>verify</goal>
</goals>
<configuration>
<!-- configuration similar to surefire -->
<includes>
<include>**/*IntegrationTest</include>
</includes>
</configuration>
</execution>
</executions>

View File

@ -0,0 +1,13 @@
package com.baeldung.maven.it;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertTrue;
class FailsafeBuildPhaseIntegrationTest {
@Test
public void whenTestExecutes_thenPreAndPostIntegrationBuildPhasesAreExecuted() {
assertTrue(true);
}
}