Skip to content

Commit

Permalink
dist module to aggregate JaCoCo reports
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rsvoboda committed Sep 8, 2021
1 parent ff78b19 commit fb07ba5
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
34 changes: 34 additions & 0 deletions dist/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>multi-module-jacoco</artifactId>
<groupId>io.rsvoboda</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>dist</artifactId>
<dependencies>
<dependency>
<groupId>io.rsvoboda</groupId>
<artifactId>my-app-module</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>io.rsvoboda</groupId>
<artifactId>resource-a</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.rsvoboda</groupId>
<artifactId>resource-b</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.rsvoboda</groupId>
<artifactId>resource-c</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

</project>
21 changes: 21 additions & 0 deletions dist/src/test/java/io/rsvoboda/GreetingResourceDTest.java
Original file line number Diff line number Diff line change
@@ -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"));
}

}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<modules>
<module>my-app-module</module>
<module>integration-tests</module>
<module>dist</module>
</modules>
<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
Expand Down

0 comments on commit fb07ba5

Please sign in to comment.