aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pearl-normalize.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-26 02:54:39 -0500
committerCraig Jennings <c@cjennings.net>2026-05-26 02:54:39 -0500
commit914ab07da513daebd15c7bc65ac334cde5fbb769 (patch)
tree1f9876e4c9e9c9517f1ab49a3700a7381b859db9 /tests/test-pearl-normalize.el
parent23e4157530cff4ed95e6a9473f8ef9434d453b42 (diff)
downloadpearl-914ab07da513daebd15c7bc65ac334cde5fbb769.tar.gz
pearl-914ab07da513daebd15c7bc65ac334cde5fbb769.zip
feat(coverage): print a terminal coverage summary from the SimpleCov report
`make coverage` only reported the JSON's file size, so reading the real number meant opening the report by hand. I added a self-contained `scripts/coverage-summary.el` that parses the SimpleCov JSON and prints per-file covered/total lines with a percent, a line-weighted project figure, and a source-weighted figure. A tracked source missing from the report counts as 0% rather than dropping out silently, so a source that never got instrumented still shows up. A new `coverage-summary` target runs it against the last report, and `make coverage` chains it onto the tail of a local run (CI emits coveralls.json, not simplecov.json, so it's skipped there). Covered by `tests/test-pearl-coverage-summary.el`: parser hit/executable/merge-key semantics, the per-file records, and the error paths for a missing or malformed report.
Diffstat (limited to 'tests/test-pearl-normalize.el')
0 files changed, 0 insertions, 0 deletions