build: add test report generator (task 0003)

Add scripts/test-report.ts (bun run test:report): it runs the full suite
with JUnit + lcov output, then renders a gitignored reports/test-report.md
— a summary, a describe-grouped inventory (pass/todo/fail), and a
coverage table. The report is written even when tests fail and the script
exits with the test run's own status, so CI can gate on it later. Adds
fast-xml-parser (dev) for robust JUnit parsing; lcov is parsed by hand.
This commit is contained in:
2026-07-27 22:51:30 -04:00
parent 3d81d1c76e
commit 0b6a52452a
5 changed files with 328 additions and 1 deletions

3
.gitignore vendored
View File

@@ -10,6 +10,9 @@ result-*
# test coverage output
coverage/
# generated test report and its intermediate artifacts
reports/
# direnv / nix-direnv cache
.direnv/