aboutsummaryrefslogtreecommitdiff
path: root/scripts/coverage-summary.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-12 05:11:14 -0500
committerCraig Jennings <c@cjennings.net>2026-05-12 05:11:14 -0500
commit566237d9a00cc4037d409649560c69a44f38ea38 (patch)
tree6107a712afd5990ae1b85924e7ba23a8fa52edc6 /scripts/coverage-summary.el
parent1f27d95a71d2689e78bbc452ea13a86b2f4791e4 (diff)
downloaddotemacs-566237d9a00cc4037d409649560c69a44f38ea38.tar.gz
dotemacs-566237d9a00cc4037d409649560c69a44f38ea38.zip
refactor(build): extract the shared test-runner loop into a make macro
`test-unit' and `test-integration' carried the same ~45-line shell loop (run each .el file in its own Emacs with the slow/perf-tagged tests skipped, count "Ran N", collect failures, dump a per-file log, print a ✓/✗ summary banner, exit 1 on any fail), differing only in the file list and the label. The `:perf' tag filter had to be added in both last week, which is the kind of drift this invites. Now a `define run-el-tests' macro (parametrized by the file list and the lowercase/uppercase labels) holds the loop once, and the two targets are one `@$(call run-el-tests,...)' line each. The banner string moved to a `BANNER' variable. No behavior change: `make test-unit', `make test-integration', and `make test' produce the same output. `coverage' keeps its own loop. It uses `run-coverage-file.el' instead of `-l ert', skips the pass-count and the per-file log, has a much shorter summary, and is bracketed by the .elc cleanup and the coverage-file check. Folding it in would need three more parameters and conditionals, which would cost more clarity than the duplication does.
Diffstat (limited to 'scripts/coverage-summary.el')
0 files changed, 0 insertions, 0 deletions