Commit e4e0b88
authored
Implement hierarchical console output with comprehensive test result display (#1290)
Implement hierarchical console output with comprehensive test result
display
### Modifications:
- Implemented a tree structure using Unicode box-drawing characters (┌─,
├─, ╰─, │) that properly displays the relationship between modules, test
suites, and individual tests with ASCII fallback
- **Test Result Summary**:
- Right-aligned duration formatting in consistent `x.xxs` format
- Updated summary format: "X tests completed in Y.ZZs (pass: A, fail: B,
skip: C)"
- Concise failure summaries in hierarchy for quick scanning
- **Detailed Failure Section**:
- Complete hierarchical path display for failed tests
- Comprehensive failure analysis with test count: "FAILED TEST DETAILS
(3)"
- Detailed expectation failure messages with actual vs expected values
- Source location information with file and line numbers
- Progress tracking with error counters [1/3], [2/3], [3/3]
- Support for multiple expectations per test with individual analysis
- **Unit Tests**: Added automated tests following established patterns
to validate output formatting, hierarchy generation, and failure
handling
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.1 parent 2c66d9e commit e4e0b88
File tree
2 files changed
+1127
-42
lines changed- Sources/Testing/Events/Recorder
- Tests/TestingTests
2 files changed
+1127
-42
lines changed
0 commit comments