Skip to content

Commit b45b5b3

Browse files
committed
Add jacoco for test coverage reporting
1 parent 095c640 commit b45b5b3

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

gbfs-validator-java-cli/pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<picocli.version>4.7.7</picocli.version>
2323
<jackson.version>2.15.2</jackson.version>
2424
<junit.version>5.10.2</junit.version>
25+
<jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version>
26+
<!-- empty argLine property, the value is set up by Jacoco during unit tests execution -->
27+
<argLine></argLine>
2528
</properties>
2629

2730
<dependencies>
@@ -142,6 +145,37 @@
142145
</executions>
143146
</plugin>
144147

148+
<!-- Jacoco for code coverage -->
149+
<plugin>
150+
<groupId>org.jacoco</groupId>
151+
<artifactId>jacoco-maven-plugin</artifactId>
152+
<version>${jacoco-maven-plugin.version}</version>
153+
<executions>
154+
<execution>
155+
<id>default-prepare-agent</id>
156+
<goals>
157+
<goal>prepare-agent</goal>
158+
</goals>
159+
</execution>
160+
<execution>
161+
<id>default-report</id>
162+
<phase>prepare-package</phase>
163+
<goals>
164+
<goal>report</goal>
165+
</goals>
166+
</execution>
167+
<execution>
168+
<id>default-check</id>
169+
<goals>
170+
<goal>check</goal>
171+
</goals>
172+
<configuration>
173+
<rules />
174+
</configuration>
175+
</execution>
176+
</executions>
177+
</plugin>
178+
145179
<!-- Surefire for tests -->
146180
<plugin>
147181
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)