Improve reusable TestCase and Swift Testing integration - #2
Open
kudit wants to merge 56 commits into
Open
Conversation
kudit
force-pushed
the
agent/improve-test-infrastructure
branch
from
July 26, 2026 02:08
20d8a11 to
c6c86f1
Compare
Fix test infrastructure availability
Simplified code duplication and context description.
Refactor lastPathComponent to support Windows-style paths and remove Foundation dependency.
Added guidelines for collaborative coding workflow to improve interaction with maintainers.
Added testing requirements and TODOs for release preparation.
This reverts commit d82e8c0.
fix @available where macOS 12 was paired with watchOS 8
kudit
marked this pull request as ready for review
August 4, 2026 17:12
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ae7c4eef2e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
kudit
force-pushed
the
agent/improve-test-infrastructure
branch
from
August 12, 2026 15:09
423233a to
a0a5162
Compare
Made the recommended changes to the build settings and added necessary Compatibility.debug calls to sites where source is forwarded.
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.
What changed
This PR modernizes Compatibility's reusable test infrastructure and related diagnostics while preserving the existing in-app
TestCasemodel.Reusable test execution
TestCase.execute()and live-UI execution through one lifecycle implementation.defereven when expectations throw.Swift Testing integration
Compatibility Testing Libraryproduct.ModuleTestEntry, adapting each reusableTestCaseinto a parameterized Swift Testing case with stable identity and readable descriptions.Debug/source-context cleanup
DebugFormatContextandSourceContext.#file/#function/#line/#columncapture at public call boundaries while forwarding a singleSourceContextinternally.Threading portability
main,background,sleep, anddelaywhen Compatibility cannot provide the advertised scheduling/timing semantics.Package/version cleanup
Validation before merge
swift testand confirm all reusable module parameter cases pass.CompatibilityTestXcode scheme and confirm bothCompatibilityTestsandCompatibilityUITestsare discovered and pass.Follow-up
After release, Device can import
CompatibilityTestingand replace its duplicated module-test adapter withModuleTestEntry.