1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-20 02:32:36 +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 image: maven:3-jdk-8
maven_build: maven_build:
script: mvn verify script:
-"mvn verify"
-"cat target/site/jacoco/index.html"

22
pom.xml
View File

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