From f6a07a84fb821423202385e20b8069fe29b07e3b Mon Sep 17 00:00:00 2001 From: Gerrit Meier Date: Fri, 8 Mar 2019 13:48:53 +0100 Subject: [PATCH] Split unit and integration tests. --- README.adoc | 7 +++++++ pom.xml | 21 +++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/README.adoc b/README.adoc index b0a7ec3ed..bd1366719 100644 --- a/README.adoc +++ b/README.adoc @@ -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. diff --git a/pom.xml b/pom.xml index fc29fa07e..374f036e7 100644 --- a/pom.xml +++ b/pom.xml @@ -310,6 +310,27 @@ **/*Test.java **/*Tests.java + + **/*IntegrationTest.java + + + + + org.apache.maven.plugins + maven-failsafe-plugin + 3.0.0-M3 + + + + integration-test + verify + + + + + + **/*IntegrationTest.java +