From 5681da3ed4d697e4fc753722033969f0dff14d36 Mon Sep 17 00:00:00 2001 From: Marcin Barc Date: Sat, 7 Nov 2026 23:32:38 +0100 Subject: [PATCH 1/2] test: separate unit and integration tests with failsafe --- pom.xml | 5 +++++ ...ceApplicationTests.java => AuthServiceApplicationIT.java} | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) rename src/test/java/com/authservice/authservice/{AuthServiceApplicationTests.java => AuthServiceApplicationIT.java} (88%) diff --git a/pom.xml b/pom.xml index 8d0294c..c4b51e3 100644 --- a/pom.xml +++ b/pom.xml @@ -139,6 +139,11 @@ org.springframework.boot spring-boot-maven-plugin + + + org.apache.maven.plugins + maven-failsafe-plugin + org.apache.maven.plugins maven-compiler-plugin diff --git a/src/test/java/com/authservice/authservice/AuthServiceApplicationTests.java b/src/test/java/com/authservice/authservice/AuthServiceApplicationIT.java similarity index 88% rename from src/test/java/com/authservice/authservice/AuthServiceApplicationTests.java rename to src/test/java/com/authservice/authservice/AuthServiceApplicationIT.java index 4a1a4cf..fd3019a 100644 --- a/src/test/java/com/authservice/authservice/AuthServiceApplicationTests.java +++ b/src/test/java/com/authservice/authservice/AuthServiceApplicationIT.java @@ -6,7 +6,7 @@ @Import(TestcontainersConfiguration.class) @SpringBootTest -class AuthServiceApplicationTests { +class AuthServiceApplicationIT { @Test void contextLoads() { From 9d97af6ead08f0b3daa986a1b9717d9b257882e3 Mon Sep 17 00:00:00 2001 From: Marcin Barc Date: Sun, 8 Nov 2026 13:28:21 +0100 Subject: [PATCH 2/2] build: add jacoco code coverage report --- pom.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pom.xml b/pom.xml index c4b51e3..a3b498f 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,7 @@ 25 3.2.0 + 0.8.16 @@ -144,6 +145,27 @@ org.apache.maven.plugins maven-failsafe-plugin + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + prepare-agent + + prepare-agent + + + + report + verify + + report + + + + org.apache.maven.plugins maven-compiler-plugin