Commit 85272ce
CAMEL-23274: Add incremental coverage to SonarCloud PR analysis
Build on top of the core coverage from the base PR 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 at
target/site/jacoco/jacoco.xml
- pom.xml: Update sonar.coverage.jacoco.xmlReportPaths to include
both per-module reports and the aggregated core report
- sonar-build.yml: Add incremental-build step with -Dcoverage in
MVND_OPTS to test PR-affected modules with JaCoCo
- coverage/pom.xml: Add ContextValueFactory to MRJAR excludes
Coverage strategy:
- Core: aggregated report via coverage module (camel-core tests
exercise classes across multiple core source modules)
- Components: per-module reports (each component has its own
classes and tests)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent bd07701 commit 85272ce
File tree
4 files changed
+32
-2
lines changed- .github/workflows
- coverage
- parent
4 files changed
+32
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
61 | 82 | | |
62 | 83 | | |
63 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2650 | 2650 | | |
2651 | 2651 | | |
2652 | 2652 | | |
| 2653 | + | |
2653 | 2654 | | |
2654 | 2655 | | |
2655 | 2656 | | |
| |||
| 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