Create coverage report during the build

This commit is contained in:
Enrico Horn
2021-07-22 23:14:26 +02:00
parent c8c2c29d62
commit a4d95841e4
2 changed files with 47 additions and 0 deletions

View File

@@ -15,6 +15,11 @@
<description>Testsuites for LuaJ</description> <description>Testsuites for LuaJ</description>
<dependencies> <dependencies>
<dependency>
<groupId>org.luaj</groupId>
<artifactId>luaj-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.luaj</groupId> <groupId>org.luaj</groupId>
<artifactId>luaj-jme</artifactId> <artifactId>luaj-jme</artifactId>
@@ -44,4 +49,22 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> </project>

24
pom.xml
View File

@@ -97,5 +97,29 @@
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${argLine} -Xms256m -Xmx2048m</argLine>
<forkCount>1</forkCount>
<runOrder>random</runOrder>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>