Commit bae3e9b
chore: Track code coverage of the built module in the Pester task (#140)
## Summary
- Enable Pester code coverage over the built module output in the
repository's own Pester task (Pester 6's profiler-based tracer, so the
runtime cost is small)
- Write a JaCoCo report to `tests/out/coverage.xml` and print a one-line
summary in the task output, so the coverage number is visible in every
CI log
- **Tracking only — deliberately no threshold gate.** The number
understates real coverage: tests that exercise code in child processes
(the `build.tests.ps1` child builds and the `Test-PSBuildPester`
subprocess matrix from #137) are invisible to session instrumentation.
It's a trend line for the #17 test batch, not an absolute
- Publishing the JaCoCo file from CI requires a change to the shared
`psake/.github` workflow — tracked separately as #139. The
threshold-math bug in the shipped `Test-PSBuildPester` coverage feature,
found while evaluating this, is #138
No changelog entry: repository-internal change only.
## Test Plan
- [x] `./build.ps1 -Task Test` locally: 391 passed, 0 failed; summary
line prints (`Code coverage: 4.2 % of analyzed commands executed (44 of
1044)`) and `tests/out/coverage.xml` is produced (valid JaCoCo)
- [ ] CI matrix green; coverage line visible in each leg's log
## Breaking Changes
None.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_011semwa5HU1BUKKL4RoWjKa
---
_Generated by [Claude
Code](https://claude.ai/code/session_011semwa5HU1BUKKL4RoWjKa)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3cd758e commit bae3e9b
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
52 | 61 | | |
53 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
54 | 72 | | |
55 | 73 | | |
56 | 74 | | |
| |||
0 commit comments