1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-18 08:30:18 +00:00

Added test coverage

This commit is contained in:
jespergravgaard 2018-02-12 22:42:16 +01:00
parent 311df89cf0
commit e9ef366276
2 changed files with 25 additions and 1 deletions

View File

@ -1,4 +1,6 @@
image: maven:3-jdk-8
maven_build:
script: mvn verify
script:
-"mvn verify"
-"cat target/site/jacoco/index.html"

22
pom.xml
View File

@ -48,6 +48,7 @@
</includes>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/java</directory>
@ -60,6 +61,7 @@
</includes>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -69,6 +71,26 @@
<argLine>-Xmx1024m</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</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>