Skip to content

Commit

Permalink
#314 Add Jacoco traces for maven plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Ruhroth authored and ascheman committed Nov 19, 2024
1 parent b956b3e commit d8dfa09
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ src/docs/resources/graphics/.DS_Store
tmp/
.gradle2/
public/
integration-test/maven-plugin/target/
htmlSanityCheck-maven-plugin/target/
38 changes: 37 additions & 1 deletion htmlSanityCheck-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<java.version>8</java.version>
</properties>


Expand Down Expand Up @@ -147,9 +147,45 @@
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<!-- Sets the VM argument line used when integration tests are run. -->
<argLine>${failsafeArgLine}</argLine>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<!-- set arg line property for surefire -->
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<append>false</append>
<destFile>build/jacoco/test.exec</destFile>
<propertyName>surefireArgLine</propertyName>
</configuration>
</execution>
<!-- set arg line property for failsafe -->
<execution>
<id>prepare-agent-integration</id>
<goals>
<goal>prepare-agent-integration</goal>
</goals>
<configuration>
<append>true</append>
<destFile>build/jacoco/test.exec</destFile>
<propertyName>failsafeArgLine</propertyName>
</configuration>
</execution>
</executions>
</plugin>


</plugins>
</build>
</project>

0 comments on commit d8dfa09

Please sign in to comment.