feat: Swift Reporter - Proposal | ADR#87
Open
vnsamy-code wants to merge 1 commit into
Open
Conversation
Adds ADR-009 proposing Swift reporter implementation for TDD Guard. The reporter will support iOS, macOS, watchOS, and tvOS platforms. Key decisions: - Phase 1: XCTest support via XCTestObservation protocol - Official Apple API with stable 10+ year protocol contracts - Rich structured data (file paths, line numbers, error messages) - No fragile text parsing required - Phase 2: Swift Testing support via XUnit XML parsing - Stable, documented format (industry standard) - Note: swift test lacks JSON output (unlike Go/Rust) - Tradeoff accepted: missing file/line numbers for stability The reporter follows Go/Rust patterns: - Writes to .claude/tdd-guard/data/test.json - Recognizes compilation errors as valid RED-phase failures - Distributed as Swift Package with executable product 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Owner
|
Hi @vnsamy-code, How's it going on the Swift reporter side? Should we update the ADR with your latest findings? P.S. We might need to bump the ADR number. |
Contributor
Author
|
Hi @nizos ! Yeah, ADR number needs bump and also, I will shipp the ADR with the reporter PR like you did in your recent PRs. Okay, if I close this ADR PR? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Swift Reporter - Proposal
Adds ADR-009 proposing Swift reporter implementation for TDD Guard. The reporter will support iOS, macOS, watchOS, and tvOS platforms (All Apple Platforms).
Key decisions:
XCTestObservation
Swift Testing
The reporter follows Go/Rust patterns: