How swiftlang/swift-testing works
a. Test Flow:
• Test Declaration (Macros) → Discovery → Runner → Event System → Recorders
b. Platform Integration:
• Core Engine ↔ Platform Overlays ↔ Native Platform APIs
c. ABI Communication:
• Test Runner ↔ ABI Layer ↔ External Tools
Important Subsystems (Use nested components)
a. Event System
• Clock
• Recorders (Console, Human Readable, JUnit XML)
• Event Types
b. Test Organization
• Tags
• Traits
• Parameterization
• Scoping
Cross-Cutting Concerns (Use horizontal layers)
a. Source Attribution
• Backtraces
• Source Location
• Expression Capture
b. Support Infrastructure
• Locking
• Error Handling
• Environment Management
External Integration Points (Use interface symbols)
a. Build Systems
• SwiftPM Integration
• CMake Support
b. Platform APIs
• Foundation
• CoreGraphics
• WASI (experimental)