diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-15 13:32:35 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-15 13:32:35 -0600 |
| commit | 02cf72de7c325da88439e4a0df705d07a5dcf539 (patch) | |
| tree | 6a8246c03607c24dcb7e8f91a333b3b18586fbc7 /modules/diff-config.el | |
| parent | 1e4e43eb412faf7b032e99419c2f9973913b8004 (diff) | |
| download | dotemacs-02cf72de7c325da88439e4a0df705d07a5dcf539.tar.gz dotemacs-02cf72de7c325da88439e4a0df705d07a5dcf539.zip | |
feat(tests): Improve test failure reporting in Makefile
Major improvements to test output clarity and failure diagnostics:
Output Improvements:
- Clean aligned output showing test file + pass/fail status
- Show test count for passing files: "✓ (11 tests)"
- Clear "✗ FAILED" marker for failures (no verbose noise)
- Suppress passing test details (reduces output by ~95%)
Failure Summary:
- Clear visual separator box for failures
- List all failed files with bullet points
- Show specific failed test names with line numbers
- Provide copy-paste commands to re-run failures
Technical Changes:
- Capture test output and only display on failure
- Extract test count from ERT output for passing tests
- Save failure details to temp files for summary
- Apply same improvements to both unit and integration tests
Benefits:
- Instantly see which tests failed (no scrolling)
- Know exactly which test names failed
- Get line numbers for debugging
- Copy-paste commands to re-run specific failures
- Dramatically reduced output verbosity
Example summary:
Failed test files:
• test-mousetrap-mode--get-profile-for-mode.el
Errors:
FAILED test-foo (line 15)
Run individual failing tests with:
make test-file FILE=test-mousetrap-mode--get-profile-for-mode.el
Diffstat (limited to 'modules/diff-config.el')
0 files changed, 0 insertions, 0 deletions
