Skip to content

Commit e0b073a

Browse files
authored
Merge pull request #177 from oracle/code-coverage
added Jacoco plugin for code coverage reports
2 parents d86398b + b4746b6 commit e0b073a

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,26 @@
7575
<useModulePath>false</useModulePath>
7676
</configuration>
7777
</plugin>
78+
<plugin>
79+
<groupId>org.jacoco</groupId>
80+
<artifactId>jacoco-maven-plugin</artifactId>
81+
<version>0.8.7</version>
82+
<executions>
83+
<execution>
84+
<id>prepare-agent</id>
85+
<goals>
86+
<goal>prepare-agent</goal>
87+
</goals>
88+
</execution>
89+
<execution>
90+
<id>report</id>
91+
<phase>test</phase>
92+
<goals>
93+
<goal>report</goal>
94+
</goals>
95+
</execution>
96+
</executions>
97+
</plugin>
7898
</plugins>
7999
</pluginManagement>
80100
</build>

wls-exporter-core/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@
8282
</dependency>
8383
</dependencies>
8484

85+
<build>
86+
<plugins>
87+
<plugin>
88+
<groupId>org.jacoco</groupId>
89+
<artifactId>jacoco-maven-plugin</artifactId>
90+
</plugin>
91+
</plugins>
92+
</build>
93+
8594
<profiles>
8695
<profile>
8796
<id>jdk11Client</id>

wls-exporter-sidecar/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@
137137
</execution>
138138
</executions>
139139
</plugin>
140+
<plugin>
141+
<groupId>org.jacoco</groupId>
142+
<artifactId>jacoco-maven-plugin</artifactId>
143+
</plugin>
140144
</plugins>
141145
</build>
142146
</project>

0 commit comments

Comments
 (0)