From fb07ba5881d066d92ac1c94c2ea924020d4829e7 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Wed, 8 Sep 2021 14:04:39 +0200 Subject: [PATCH] dist module to aggregate JaCoCo reports dist module needs at least one @QuarkusTest to trigger the extension dist module needs to depend on integration-test modules to aggregate jacoco data from them --- dist/pom.xml | 34 +++++++++++++++++++ .../io/rsvoboda/GreetingResourceDTest.java | 21 ++++++++++++ pom.xml | 1 + 3 files changed, 56 insertions(+) create mode 100644 dist/pom.xml create mode 100644 dist/src/test/java/io/rsvoboda/GreetingResourceDTest.java diff --git a/dist/pom.xml b/dist/pom.xml new file mode 100644 index 0000000..7fc02b9 --- /dev/null +++ b/dist/pom.xml @@ -0,0 +1,34 @@ + + + 4.0.0 + + multi-module-jacoco + io.rsvoboda + 1.0.0-SNAPSHOT + + dist + + + io.rsvoboda + my-app-module + ${project.version} + + + + io.rsvoboda + resource-a + ${project.version} + + + io.rsvoboda + resource-b + ${project.version} + + + io.rsvoboda + resource-c + ${project.version} + + + + \ No newline at end of file diff --git a/dist/src/test/java/io/rsvoboda/GreetingResourceDTest.java b/dist/src/test/java/io/rsvoboda/GreetingResourceDTest.java new file mode 100644 index 0000000..06918dc --- /dev/null +++ b/dist/src/test/java/io/rsvoboda/GreetingResourceDTest.java @@ -0,0 +1,21 @@ +package io.rsvoboda; + +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; +import static org.hamcrest.CoreMatchers.is; + +@QuarkusTest +public class GreetingResourceDTest { + + @Test + public void testHelloEndpoint() { + given() + .when().get("/hello/D") + .then() + .statusCode(200) + .body(is("Hello RESTEasy")); + } + +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index a04b477..44ddca5 100644 --- a/pom.xml +++ b/pom.xml @@ -9,6 +9,7 @@ my-app-module integration-tests + dist 3.8.1