Skip to content

Commit a92bed1

Browse files
committed
Added JaCoCo plugin for coverage reports.
1 parent ca8f5b6 commit a92bed1

File tree

1 file changed

+59
-1
lines changed

1 file changed

+59
-1
lines changed

api.tests/pom.xml

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,31 @@
5353
</dependencies>
5454
<build>
5555
<plugins>
56+
<plugin>
57+
<groupId>org.jacoco</groupId>
58+
<artifactId>jacoco-maven-plugin</artifactId>
59+
<version>0.7.4.201502262128</version>
60+
<configuration>
61+
<destfile>${basedir}/target/jacoco.exec</destfile>
62+
<!-- <datafile>${basedir}/target/jacoco-unit.exec</datafile> -->
63+
</configuration>
64+
<executions>
65+
<execution>
66+
<id>jacoco-initialize</id>
67+
<goals>
68+
<goal>prepare-agent</goal>
69+
</goals>
70+
</execution>
71+
<execution>
72+
<id>jacoco-site</id>
73+
<phase>test</phase>
74+
<goals>
75+
<goal>report</goal>
76+
</goals>
77+
</execution>
78+
</executions>
79+
80+
</plugin>
5681
<plugin>
5782
<groupId>org.testng.xslt</groupId>
5883
<artifactId>testng-xslt-plugin</artifactId>
@@ -117,5 +142,38 @@
117142
</configuration>
118143
</plugin>
119144
</plugins>
120-
</build>
145+
<pluginManagement>
146+
<plugins>
147+
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
148+
<plugin>
149+
<groupId>org.eclipse.m2e</groupId>
150+
<artifactId>lifecycle-mapping</artifactId>
151+
<version>1.0.0</version>
152+
<configuration>
153+
<lifecycleMappingMetadata>
154+
<pluginExecutions>
155+
<pluginExecution>
156+
<pluginExecutionFilter>
157+
<groupId>org.jacoco</groupId>
158+
<artifactId>
159+
jacoco-maven-plugin
160+
</artifactId>
161+
<versionRange>
162+
[0.7.4.201502262128,)
163+
</versionRange>
164+
<goals>
165+
<goal>prepare-agent</goal>
166+
</goals>
167+
</pluginExecutionFilter>
168+
<action>
169+
<ignore></ignore>
170+
</action>
171+
</pluginExecution>
172+
</pluginExecutions>
173+
</lifecycleMappingMetadata>
174+
</configuration>
175+
</plugin>
176+
</plugins>
177+
</pluginManagement>
178+
</build>
121179
</project>

0 commit comments

Comments
 (0)