|
231 | 231 | <goal>prepare-agent</goal>
|
232 | 232 | </goals>
|
233 | 233 | <configuration>
|
234 |
| - <propertyName>surefireArgLine</propertyName> |
| 234 | + <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile> |
235 | 235 | </configuration>
|
236 | 236 | </execution>
|
237 | 237 | <execution>
|
|
240 | 240 | <goals>
|
241 | 241 | <goal>report</goal>
|
242 | 242 | </goals>
|
| 243 | + <configuration> |
| 244 | + <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile> |
| 245 | + <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> |
| 246 | + </configuration> |
243 | 247 | </execution>
|
| 248 | + <!-- End Executions for unit tests --> |
| 249 | + <!-- The Executions for integration tests --> |
| 250 | + <execution> |
| 251 | + <id>pre-integration-test</id> |
| 252 | + <phase>pre-integration-test</phase> |
| 253 | + <goals> |
| 254 | + <goal>prepare-agent</goal> |
| 255 | + </goals> |
| 256 | + <configuration> |
| 257 | + <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> |
| 258 | + </configuration> |
| 259 | + </execution> |
| 260 | + <execution> |
| 261 | + <id>post-integration-test</id> |
| 262 | + <phase>post-integration-test</phase> |
| 263 | + <goals> |
| 264 | + <goal>report</goal> |
| 265 | + </goals> |
| 266 | + <configuration> |
| 267 | + <dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile> |
| 268 | + <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> |
| 269 | + </configuration> |
| 270 | + </execution> |
| 271 | + <!-- End Executions for integration tests --> |
244 | 272 | </executions>
|
245 | 273 | </plugin>
|
246 | 274 | <!-- end JACOCO -->
|
|
256 | 284 | </plugins>
|
257 | 285 | </reporting>
|
258 | 286 | <profiles>
|
| 287 | + <profile> |
| 288 | + <id>dev</id> |
| 289 | + <build> |
| 290 | + <plugins> |
| 291 | + <plugin> |
| 292 | + <groupId>org.jacoco</groupId> |
| 293 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 294 | + <version>${version.jacoco}</version> |
| 295 | + <executions> |
| 296 | + <!-- The Executions for merging --> |
| 297 | + <execution> |
| 298 | + <id>merge-results</id> |
| 299 | + <phase>verify</phase> |
| 300 | + <goals> |
| 301 | + <goal>merge</goal> |
| 302 | + </goals> |
| 303 | + <configuration> |
| 304 | + <fileSets> |
| 305 | + <fileSet> |
| 306 | + <directory>${project.build.directory}/coverage-reports</directory> |
| 307 | + <includes> |
| 308 | + <include>*.exec</include> |
| 309 | + </includes> |
| 310 | + </fileSet> |
| 311 | + </fileSets> |
| 312 | + <destFile>${project.build.directory}/coverage-reports/aggregate.exec</destFile> |
| 313 | + </configuration> |
| 314 | + </execution> |
| 315 | + <execution> |
| 316 | + <id>post-merge-report</id> |
| 317 | + <phase>verify</phase> |
| 318 | + <goals> |
| 319 | + <goal>report</goal> |
| 320 | + </goals> |
| 321 | + <configuration> |
| 322 | + <dataFile>${project.build.directory}/coverage-reports/aggregate.exec</dataFile> |
| 323 | + <outputDirectory>${project.reporting.outputDirectory}/jacoco-aggregate</outputDirectory> |
| 324 | + </configuration> |
| 325 | + </execution> |
| 326 | + <!-- End Executions for merging --> |
| 327 | + </executions> |
| 328 | + </plugin> |
| 329 | + </plugins> |
| 330 | + </build> |
| 331 | + </profile> |
259 | 332 | <profile>
|
260 | 333 | <id>release-sign-artifacts</id>
|
261 | 334 | <activation>
|
|
0 commit comments