jacoco for the daemon code

This commit is contained in:
Andreas Penski (init) 2020-04-29 19:48:57 +02:00
parent 5886c9a0db
commit aca3d2bd04

44
pom.xml
View file

@ -39,7 +39,7 @@
</developers> </developers>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.jacoco>0.8.4</version.jacoco> <version.jacoco>0.8.5</version.jacoco>
<version.lombok>1.18.8</version.lombok> <version.lombok>1.18.8</version.lombok>
<version.saxon-he>9.9.1-3</version.saxon-he> <version.saxon-he>9.9.1-3</version.saxon-he>
<version.slf4j>1.7.25</version.slf4j> <version.slf4j>1.7.25</version.slf4j>
@ -309,14 +309,39 @@
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
<id>prepareJacocoJUnitArgLine</id> <id>prepareJacocoSurefireArgLine</id>
<goals> <goals>
<goal>prepare-agent</goal> <goal>prepare-agent</goal>
</goals> </goals>
<configuration> <configuration>
<propertyName>jacocoArgumentsJUnit</propertyName> <propertyName>jacocoSurefire</propertyName>
</configuration> </configuration>
</execution> </execution>
<execution>
<id>prepareJacocoFailsafeArgLine</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>jacocoFailsafe</propertyName>
<output>tcpserver</output>
<address>localhost</address>
<port>8081</port>
</configuration>
</execution>
<execution>
<id>dump</id>
<phase>post-integration-test</phase>
<goals>
<goal>dump</goal>
</goals>
<configuration>
<address>localhost</address>
<port>8081</port>
<append>true</append>
</configuration>
</execution>
<execution> <execution>
<id>generateJacocoReport</id> <id>generateJacocoReport</id>
<goals> <goals>
@ -332,7 +357,7 @@
<version>2.22.0</version> <version>2.22.0</version>
<configuration> <configuration>
<!--suppress MavenModelInspection --> <!--suppress MavenModelInspection -->
<argLine>-Dfile.encoding=UTF-8 ${jacocoArgumentsJUnit}</argLine> <argLine>-Dfile.encoding=UTF-8 ${jacocoSurefire}</argLine>
</configuration> </configuration>
</plugin> </plugin>
@ -364,20 +389,21 @@
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version> <version>1.6.0</version>
<executions> <executions>
<execution> <execution>
<id>run</id> <id>run</id>
<phase>pre-integration-test</phase> <phase>pre-integration-test</phase>
<goals> <goals>
<goal>exec</goal> <goal>exec</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<executable>java</executable> <executable>java</executable>
<longClasspath>true</longClasspath> <longClasspath>true</longClasspath>
<async>true</async> <async>true</async>
<asyncDestroyOnShutdown>true</asyncDestroyOnShutdown> <asyncDestroyOnShutdown>true</asyncDestroyOnShutdown>
<arguments> <arguments>
<argument>${jacocoFailsafe}</argument>
<argument>-classpath</argument> <argument>-classpath</argument>
<classpath /> <classpath />
<argument>de.kosit.validationtool.cmd.CommandLineApplication</argument> <argument>de.kosit.validationtool.cmd.CommandLineApplication</argument>