|
312 | 312 | <artifactId>maven-surefire-plugin</artifactId> |
313 | 313 | <version>2.22.2</version> |
314 | 314 | <configuration> |
315 | | - <!-- Run only API tests (*IT.java) by default --> |
316 | | - <includes> |
317 | | - <include>**/*IT.java</include> |
318 | | - </includes> |
| 315 | + <!-- Tests are skipped by default; use -Dtest to specify which tests to run --> |
| 316 | + <!-- Example: -Dtest='*IT' for integration tests, -Dtest='Test*' for unit tests --> |
319 | 317 | <skipTests>true</skipTests> |
| 318 | + <!-- OPTIMIZED: Parallel execution with controlled concurrency --> |
| 319 | + <parallel>classes</parallel> |
| 320 | + <threadCount>4</threadCount> |
| 321 | + <perCoreThreadCount>false</perCoreThreadCount> |
| 322 | + <useUnlimitedThreads>false</useUnlimitedThreads> |
| 323 | + <!-- Reuse forks for better performance --> |
| 324 | + <reuseForks>true</reuseForks> |
| 325 | + <forkCount>2</forkCount> |
| 326 | + <!-- Increase timeout for slow tests --> |
| 327 | + <forkedProcessTimeoutInSeconds>500</forkedProcessTimeoutInSeconds> |
| 328 | + <!-- Better memory management --> |
| 329 | + <!-- @{argLine} allows JaCoCo to inject its agent --> |
| 330 | + <argLine>@{argLine} -Xmx2048m -XX:MaxMetaspaceSize=512m</argLine> |
320 | 331 | </configuration> |
321 | 332 | </plugin> |
| 333 | + |
| 334 | + <plugin> |
| 335 | + <groupId>org.apache.maven.plugins</groupId> |
| 336 | + <artifactId>maven-surefire-report-plugin</artifactId> |
| 337 | + <version>2.22.2</version> |
| 338 | + <executions> |
| 339 | + <execution> |
| 340 | + <phase>test</phase> |
| 341 | + <goals> |
| 342 | + <goal>report-only</goal> |
| 343 | + </goals> |
| 344 | + </execution> |
| 345 | + </executions> |
| 346 | + </plugin> |
322 | 347 |
|
323 | 348 | <plugin> |
324 | 349 | <groupId>org.apache.maven.plugins</groupId> |
|
417 | 442 | </goals> |
418 | 443 | <configuration> |
419 | 444 | <dataFile>target/jacoco.exec</dataFile> |
420 | | - <outputDirectory>target/jacoco-ut</outputDirectory> |
| 445 | + <!-- outputDirectory removed - uses default: target/site/jacoco/ --> |
421 | 446 | </configuration> |
422 | 447 | </execution> |
423 | 448 | </executions> |
|
0 commit comments