1
0
Fork 0
mirror of https://github.com/crawler-commons/crawler-commons synced 2024-05-04 14:36:04 +02:00

Generate JaCoCo reports when testing (#412)

Signed-off-by: Julien Nioche <julien@digitalpebble.com>
This commit is contained in:
Julien Nioche 2023-05-23 14:55:40 +01:00 committed by GitHub
parent 5246b69f80
commit d1211d6057
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

22
pom.xml
View File

@ -157,6 +157,26 @@
</pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.10</version>
<executions>
<execution>
<id>prepare-agent</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>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
@ -188,7 +208,7 @@
<systemPropertyVariables>
<test.build.data>${project.basedir}/target/test-data/</test.build.data>
</systemPropertyVariables>
<argLine>-Xmx512m</argLine>
<argLine>@{argLine} -Xmx512m</argLine>
<forkCount>2</forkCount>
<testFailureIgnore>false</testFailureIgnore>
</configuration>