aboutsummaryrefslogtreecommitdiff
path: root/tests/test-duet-coverage-summary.el
Commit message (Collapse)AuthorAgeFilesLines
* test: cover the coverage-summary toolingCraig Jennings33 hours1-0/+172
scripts/coverage-summary.el carries real JSON parsing and report-formatting logic, but make coverage instruments only duet.el, so the tool itself had no tests. This adds them, mirroring the pattern from the other package's suite: synthetic SimpleCov reports written to temp files, so the tests are pure and need no prior coverage run. The cases cover the normal percentage path, a fully covered file, a file with no executable lines, a multi-key union, basename-versus-path key matching, a tracked source absent from the report counting as 0%, missing and malformed JSON erroring as a user-error, and the formatted summary text. There is no new target. The test file requires the script and runs under make test like every other suite, holding the tooling to the same bar as the package.