Skip to content

Commit fe43a6f

Browse files
committed
Maven: Execute all tests and calculate coverage.
Make preparations to also create coverage for ITs.
1 parent 2325787 commit fe43a6f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

pom.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
<properties>
3535
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3636
<sonar.sources>src/main/groovy</sonar.sources>
37-
<sonar.test.source>src/test/groovy</sonar.test.source>
3837
<sonar.groovy.jacoco.reportPath>target/jacoco.exec</sonar.groovy.jacoco.reportPath>
38+
<sonar.groovy.jacoco.itReportPath>target/jacoco-it.exec</sonar.groovy.jacoco.itReportPath>
3939
</properties>
4040

4141
<scm>
@@ -113,10 +113,12 @@
113113
<configuration>
114114
<includes>
115115
<include>de.triology.blog.testdataloader.demo.Demo</include>
116+
<include>**/*Test.java</include>
116117
</includes>
117118
</configuration>
118119
</plugin>
119120

121+
120122
<plugin>
121123
<groupId>org.codehaus.mojo</groupId>
122124
<artifactId>build-helper-maven-plugin</artifactId>
@@ -240,18 +242,24 @@
240242

241243
<build>
242244
<plugins>
243-
244245
<!-- prepare jacoco agent for code coverage in sonar -->
245246
<plugin>
246247
<groupId>org.jacoco</groupId>
247248
<artifactId>jacoco-maven-plugin</artifactId>
249+
<version>0.7.9</version>
248250
<executions>
249251
<execution>
250252
<phase>initialize</phase>
251253
<goals>
252254
<goal>prepare-agent</goal>
253255
</goals>
254256
</execution>
257+
<execution>
258+
<id>agent-for-it</id>
259+
<goals>
260+
<goal>prepare-agent-integration</goal>
261+
</goals>
262+
</execution>
255263
</executions>
256264
</plugin>
257265
</plugins>

0 commit comments

Comments
 (0)