Skip to content

Commit 5d4c98a

Browse files
committed
[feature] Add Code Coverage with JaCoCo
1 parent 2e9cf1d commit 5d4c98a

1 file changed

Lines changed: 67 additions & 0 deletions

File tree

pom.xml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,14 @@
279279
<filtering>true</filtering>
280280
</testResource>
281281
</testResources>
282+
282283
<pluginManagement>
283284
<plugins>
285+
<plugin>
286+
<groupId>org.jacoco</groupId>
287+
<artifactId>jacoco-maven-plugin</artifactId>
288+
<version>0.8.14</version>
289+
</plugin>
284290
<plugin>
285291
<groupId>org.apache.maven.plugins</groupId>
286292
<artifactId>maven-jar-plugin</artifactId>
@@ -307,6 +313,25 @@
307313
<version>0.10.0</version>
308314
<extensions>true</extensions>
309315
</plugin>
316+
<plugin>
317+
<groupId>org.apache.maven.plugins</groupId>
318+
<artifactId>maven-site-plugin</artifactId>
319+
<version>3.21.0</version>
320+
</plugin>
321+
<plugin>
322+
<groupId>org.apache.maven.plugins</groupId>
323+
<artifactId>maven-surefire-report-plugin</artifactId>
324+
<version>3.5.4</version>
325+
</plugin>
326+
<plugin>
327+
<groupId>org.apache.maven.plugins</groupId>
328+
<artifactId>maven-project-info-reports-plugin</artifactId>
329+
<version>3.9.0</version>
330+
<configuration>
331+
<dependencyDetailsEnabled>false</dependencyDetailsEnabled> <!-- TODO(AR) disabled due to slow `mvn site` build times -->
332+
</configuration>
333+
</plugin>
334+
310335
</plugins>
311336
</pluginManagement>
312337

@@ -473,6 +498,31 @@
473498
</executions>
474499
</plugin>
475500

501+
<plugin>
502+
<groupId>org.jacoco</groupId>
503+
<artifactId>jacoco-maven-plugin</artifactId>
504+
<configuration>
505+
<propertyName>jacocoArgLine</propertyName>
506+
</configuration>
507+
<executions>
508+
<execution>
509+
<id>default-prepare-agent</id>
510+
<goals>
511+
<goal>prepare-agent</goal>
512+
</goals>
513+
</execution>
514+
</executions>
515+
</plugin>
516+
517+
<plugin>
518+
<groupId>org.apache.maven.plugins</groupId>
519+
<artifactId>maven-surefire-plugin</artifactId>
520+
<version>3.5.4</version>
521+
<configuration>
522+
<argLine>@{jacocoArgLine}</argLine>
523+
</configuration>
524+
</plugin>
525+
476526
<!-- Maven Jar plugin -->
477527
<plugin>
478528
<groupId>org.apache.maven.plugins</groupId>
@@ -508,9 +558,26 @@
508558
<releaseProfiles>bbl-validator-release</releaseProfiles>
509559
</configuration>
510560
</plugin>
561+
511562
</plugins>
512563
</build>
513564

565+
<reporting>
566+
<plugins>
567+
<plugin>
568+
<groupId>org.jacoco</groupId>
569+
<artifactId>jacoco-maven-plugin</artifactId>
570+
<reportSets>
571+
<reportSet>
572+
<reports>
573+
<report>report</report>
574+
</reports>
575+
</reportSet>
576+
</reportSets>
577+
</plugin>
578+
</plugins>
579+
</reporting>
580+
514581
<profiles>
515582
<profile>
516583
<id>bbl-validator-release</id>

0 commit comments

Comments
 (0)