Skip to content

Commit e4c7cc4

Browse files
committed
Add coverage reporting to util pom.xml
1 parent e3f7b18 commit e4c7cc4

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

util/pom.xml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34
<groupId>io.kubernetes</groupId>
45
<artifactId>client-java</artifactId>
@@ -99,6 +100,26 @@
99100
</dependencies>
100101
<build>
101102
<plugins>
103+
<plugin>
104+
<groupId>org.jacoco</groupId>
105+
<artifactId>jacoco-maven-plugin</artifactId>
106+
<version>0.8.2</version>
107+
<executions>
108+
<execution>
109+
<id>jacoco-initialize</id>
110+
<goals>
111+
<goal>prepare-agent</goal>
112+
</goals>
113+
</execution>
114+
<execution>
115+
<id>jacoco-report</id>
116+
<phase>test</phase>
117+
<goals>
118+
<goal>report</goal>
119+
</goals>
120+
</execution>
121+
</executions>
122+
</plugin>
102123
<plugin>
103124
<groupId>org.apache.felix</groupId>
104125
<artifactId>maven-bundle-plugin</artifactId>
@@ -116,7 +137,7 @@
116137
<groupId>org.apache.maven.plugins</groupId>
117138
<artifactId>maven-surefire-plugin</artifactId>
118139
<configuration>
119-
<argLine>-Xms512m -Xmx1500m</argLine>
140+
<argLine>@{argLine} -Xms512m -Xmx1500m</argLine>
120141
<parallel>methods</parallel>
121142
<perCoreThreadCount>false</perCoreThreadCount>
122143
<threadCount>1</threadCount>

0 commit comments

Comments
 (0)