diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-03-23 02:22:08 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-03-23 17:03:16 +0700 |
commit | acdf4ffd9d4c6ee0b8d8595a112c5331974e08cb (patch) | |
tree | 3c4f3e56df762c52128affe6181bc07fd4790be6 /run-all-junit-tests/pom.xml | |
parent | eac253e74682f126147f1c80ed818e171feea22d (diff) | |
download | aspectj-acdf4ffd9d4c6ee0b8d8595a112c5331974e08cb.tar.gz aspectj-acdf4ffd9d4c6ee0b8d8595a112c5331974e08cb.zip |
Deactivate test run in 'run-all-unit-tests' module by default
There is a new Maven profile 'repeat-all-unit-tests', and the name
already implies what a comment in the Maven module explains like this:
ATTENTION: This profile is inactive by default, because when active and
running a full reactor build, it makes almost all tests run 2x, doubling
the build time without any added value. This Maven module only exists
for convenience: As a developer, your IDE can detect and run
'RunTheseBeforeYouCommitTests'. That way, you do not have to use Maven
and get the test results reported within the IDE's JUnit user interface.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'run-all-junit-tests/pom.xml')
-rw-r--r-- | run-all-junit-tests/pom.xml | 62 |
1 files changed, 56 insertions, 6 deletions
diff --git a/run-all-junit-tests/pom.xml b/run-all-junit-tests/pom.xml index 97347e3eb..bcb21ca4e 100644 --- a/run-all-junit-tests/pom.xml +++ b/run-all-junit-tests/pom.xml @@ -269,12 +269,62 @@ </dependency> </dependencies> + <profiles> + <profile> + <!-- + ATTENTION: This profile is inactive by default, because when active and running a full reactor build, it makes + almost all tests run 2x, doubling the build time without any added value. This Maven module only exists for + convenience: As a developer, your IDE can detect and run 'RunTheseBeforeYouCommitTests'. That way, you do not + have to use Maven and get the test results reported within the IDE's JUnit user interface. + --> + <id>repeat-all-unit-tests</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <testFailureIgnore>true</testFailureIgnore> + </configuration> + <executions> + <execution> + <id>extra-test-run</id> + <phase>test</phase> + <goals> + <goal>test</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <testFailureIgnore>true</testFailureIgnore> + </configuration> + <executions> + <execution> + <id>default-test</id> + <!-- By default, do not run any tests --> + <phase>none</phase> + <goals> + <goal>test</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> - <!-- <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> - <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> <configuration> <testFailureIgnore>true</testFailureIgnore> - <includes> <include>**/RunTheseBeforeYouCommitTests*</include> </includes> - </configuration> </plugin> </plugins> </pluginManagement> </build> --> </project> |