Commit 851f479
CAMEL-23274: Add incremental coverage to SonarCloud PR analysis
Build on top of the core coverage baseline by adding per-module
coverage for PR-affected components using the incremental-build action.
Changes:
- parent/pom.xml: Add jacoco:report goal to coverage profile so each
tested module generates its own XML report
- pom.xml: Update sonar.coverage.jacoco.xmlReportPaths to include
both per-module and aggregated report paths
- sonar-build.yml: Add incremental-build step with -Dcoverage in
MVND_OPTS to test PR-affected modules with JaCoCo
Coverage strategy:
- Core: aggregated report via coverage module (camel-core tests
exercise classes across multiple core source modules)
- Components: per-module reports (each component's tests cover
its own classes)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent b0ac394 commit 851f479
3 files changed
Lines changed: 25 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
68 | 65 | | |
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
73 | 82 | | |
74 | 83 | | |
75 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4496 | 4496 | | |
4497 | 4497 | | |
4498 | 4498 | | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
4499 | 4506 | | |
4500 | 4507 | | |
4501 | 4508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
0 commit comments