Skip to content

Commit

Permalink
Skip HA tests in normal builds, run them only when requested
Browse files Browse the repository at this point in the history
HA skips tests by default, by properly setting the surefire plugin.
This, in turn, is overriden by a new profile enabled with the -Dtest-ha
option from the command line. The result is that a normal

mvn clean install

for example will run all tests except HA and a

mvn clean install -Dtest-ha -DskipTests will skip all tests except
fof HA.
  • Loading branch information
digitalstain committed Mar 6, 2018
1 parent ffaa8a2 commit 4b580ce
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions enterprise/ha/pom.xml
Expand Up @@ -50,6 +50,48 @@
</license>
</licenses>

<profiles>
<profile>
<id>test-ha</id>
<activation>
<property>
<name>test-ha</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>false</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<skipTests>false</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.neo4j</groupId>
Expand Down

0 comments on commit 4b580ce

Please sign in to comment.