mirror of
https://github.com/kellymichels/zscripts-token-savers
synced 2026-10-07 07:18:18 +00:00
tests/Invoke-Coverage.ps1 runs the suite with Pester's profiler-based coverage collector and writes both JaCoCo XML and a coverage-summary.json in the same shape vitest and jest emit, so one reader handles every tool in the fleet. CodeCoverage.Path is every *.ps1 in the repo root, including the ones no test touches. They report 0% and drag the total down, which is correct - measuring only the already-tested files answers "how well covered is the covered code". The same mistake in vitest form had evo.www reporting 93%. Baseline: 222 tests pass, 7.0% of commands (219/3,125 across 24 scripts). Pester counts commands, not statements; the collector labels it as such rather than filing it under a unit it is not. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| ArgumentParsing.Tests.ps1 | ||
| Checksums.Tests.ps1 | ||
| Invoke-Coverage.ps1 | ||
| NewProjectArchive.Tests.ps1 | ||
| ZHelpers.Tests.ps1 | ||