Split unit and integration tests.

This commit is contained in:
Gerrit Meier
2019-03-08 13:48:53 +01:00
parent c995b24a5a
commit f6a07a84fb
2 changed files with 28 additions and 0 deletions

View File

@@ -39,6 +39,13 @@ NOTE: However, we should discuss if you could try a JDK 11 only project.
Supporting the embedded use case will be solved on the drivers level.
=== Integration tests
Integration tests take more time by their very nature.
To get fast feedback we have split up the tests in unit and integration tests.
Unit tests will run when the `test` goal is issued and should have a name ending with `Test` or `Tests`.
Integration tests will get executed withing the `verify` goal and their class name have to end with `IntegrationTest` to get picked up.
== Configuration
Spring Data Neo4j RX takes a "ready to use" drivers instance and uses that.

21
pom.xml
View File

@@ -310,6 +310,27 @@
<include>**/*Test.java</include>
<include>**/*Tests.java</include>
</includes>
<excludes>
<exclude>**/*IntegrationTest.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>**/*IntegrationTest.java</include>
</includes>
</configuration>
</plugin>
</plugins>