Split unit and integration tests.
This commit is contained in:
@@ -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
21
pom.xml
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user