This is an automated email from the ASF dual-hosted git repository.
ivank pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new 11b278e Only run integration tests with -DintegrationTests
11b278e is described below
commit 11b278e202416a3893063e64e3a4579b360d2b5b
Author: Ivan Kelly <[email protected]>
AuthorDate: Mon Jan 22 10:23:29 2018 +0100
Only run integration tests with -DintegrationTests
Integration tests have a higher system requirement than normal unit
tests, and take longer to run, so they should be explicitly enabled.
Master Issue: #903
Author: Ivan Kelly <[email protected]>
Reviewers: Enrico Olivelli <[email protected]>, Sijie Guo
<[email protected]>
This closes #1022 from ivankelly/integ-flag
---
tests/docker-all-versions-image/pom.xml | 5 +++++
tests/integration-tests-base/pom.xml | 23 +++++++++++++++++++++++
2 files changed, 28 insertions(+)
diff --git a/tests/docker-all-versions-image/pom.xml
b/tests/docker-all-versions-image/pom.xml
index 365f8b3..001199a 100644
--- a/tests/docker-all-versions-image/pom.xml
+++ b/tests/docker-all-versions-image/pom.xml
@@ -40,6 +40,11 @@
<profiles>
<profile>
<id>docker</id>
+ <activation>
+ <property>
+ <name>integrationTests</name>
+ </property>
+ </activation>
<build>
<plugins>
<plugin>
diff --git a/tests/integration-tests-base/pom.xml
b/tests/integration-tests-base/pom.xml
index 450ec64..ea15237 100644
--- a/tests/integration-tests-base/pom.xml
+++ b/tests/integration-tests-base/pom.xml
@@ -69,6 +69,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
+ <!-- only run tests when -DintegrationTests is specified //-->
+ <skipTests>true</skipTests>
<systemPropertyVariables>
<currentVersion>${project.version}</currentVersion>
<maven.buildDirectory>${project.build.directory}</maven.buildDirectory>
@@ -78,4 +80,25 @@
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>integrationTests</id>
+ <activation>
+ <property>
+ <name>integrationTests</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skipTests>false</skipTests>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
--
To stop receiving notification emails like this one, please contact
[email protected].