Skip to content
Snippets Groups Projects
Commit dafdde54 authored by Hallvard Trætteberg's avatar Hallvard Trætteberg
Browse files

Added instructions to use jacoco (pom and ci yml), for issue #8

parent 9258797c
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ unittest-job: ...@@ -24,6 +24,7 @@ unittest-job:
- build-job - build-job
script: script:
- "mvn package -f tdt4140-gr1800/pom.xml $MAVEN_CLI_OPTS" - "mvn package -f tdt4140-gr1800/pom.xml $MAVEN_CLI_OPTS"
- "cat tdt4140-gr1800/target/site/jacoco/index.html"
integrationtest-job: integrationtest-job:
stage: test stage: test
......
...@@ -33,4 +33,30 @@ ...@@ -33,4 +33,30 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.0</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>
</plugins>
</build>
</project> </project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment