Skip to content

Commit 9b038fc

Browse files
committed
compiler: add JaCoCo Maven plugin for test coverage
Wires up jacoco-maven-plugin 0.8.7 in the compiler module with prepare-agent and a report execution bound to the test phase.
1 parent 6b11ed6 commit 9b038fc

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

compiler/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,25 @@
5858

5959
<build>
6060
<plugins>
61+
<plugin>
62+
<groupId>org.jacoco</groupId>
63+
<artifactId>jacoco-maven-plugin</artifactId>
64+
<version>0.8.7</version>
65+
<executions>
66+
<execution>
67+
<goals>
68+
<goal>prepare-agent</goal>
69+
</goals>
70+
</execution>
71+
<execution>
72+
<id>report</id>
73+
<phase>test</phase>
74+
<goals>
75+
<goal>report</goal>
76+
</goals>
77+
</execution>
78+
</executions>
79+
</plugin>
6180
<plugin>
6281
<artifactId>maven-jar-plugin</artifactId>
6382
<executions>

0 commit comments

Comments
 (0)