Skip to content

Commit a8d7ad2

Browse files
committed
Add code coverage for maven plugin
1 parent efad8dc commit a8d7ad2

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

maven-plugin/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,27 @@
122122
</execution>
123123
</executions>
124124
</plugin>
125+
126+
<plugin>
127+
<groupId>org.jacoco</groupId>
128+
<artifactId>jacoco-maven-plugin</artifactId>
129+
<executions>
130+
<execution>
131+
<goals>
132+
<goal>prepare-agent</goal>
133+
</goals>
134+
</execution>
135+
<!-- attached to Maven test phase -->
136+
<execution>
137+
<id>report</id>
138+
<phase>test</phase>
139+
<goals>
140+
<goal>report</goal>
141+
</goals>
142+
</execution>
143+
</executions>
144+
</plugin>
145+
125146
</plugins>
126147

127148
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->

0 commit comments

Comments
 (0)