Skip to content

Commit 4ca2039

Browse files
authored
Add jacoco for test coverage reporting in loader (#167)
1 parent a59eaa1 commit 4ca2039

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

gbfs-validator-java-loader/pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
<junit.version>6.0.0</junit.version>
2222
<wiremock.version>3.0.1</wiremock.version>
2323
<mockito.version>5.20.0</mockito.version>
24+
<jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version>
25+
<!-- empty argLine property, the value is set up by Jacoco during unit tests execution -->
26+
<argLine></argLine>
2427
</properties>
2528

2629
<dependencies>
@@ -67,4 +70,38 @@
6770
</dependency>
6871
</dependencies>
6972

73+
<build>
74+
<plugins>
75+
<!-- Jacoco for code coverage -->
76+
<plugin>
77+
<groupId>org.jacoco</groupId>
78+
<artifactId>jacoco-maven-plugin</artifactId>
79+
<version>${jacoco-maven-plugin.version}</version>
80+
<executions>
81+
<execution>
82+
<id>default-prepare-agent</id>
83+
<goals>
84+
<goal>prepare-agent</goal>
85+
</goals>
86+
</execution>
87+
<execution>
88+
<id>default-report</id>
89+
<phase>prepare-package</phase>
90+
<goals>
91+
<goal>report</goal>
92+
</goals>
93+
</execution>
94+
<execution>
95+
<id>default-check</id>
96+
<goals>
97+
<goal>check</goal>
98+
</goals>
99+
<configuration>
100+
<rules />
101+
</configuration>
102+
</execution>
103+
</executions>
104+
</plugin>
105+
</plugins>
106+
</build>
70107
</project>

0 commit comments

Comments
 (0)