diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29858a3a14cbbf014cf2a9fbcc156aaf3e506b55..7a242695bf3ea4c9cceb045e8d3a7e27068a2978 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,6 +9,7 @@ test: script: - make test - sudo /bin/chown -R gitlab-runner target + - cat target/site/jacoco/index.html cleanup: stage: cleanup diff --git a/pom.xml b/pom.xml index 59c500a03a45d01704b5ca511e856a710824364e..6b2a57b539485d3c28dbdc9d091f7ab3baeb0fc6 100644 --- a/pom.xml +++ b/pom.xml @@ -79,6 +79,26 @@ <excludeDevtools>false</excludeDevtools> </configuration> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.3</version> + <executions> + <execution> + <id>pre-unit-test</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <execution> + <id>post-unit-test</id> + <phase>test</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + </executions> + </plugin> <plugin> <artifactId>exec-maven-plugin</artifactId> <groupId>org.codehaus.mojo</groupId>