Add Swift 6.3 Swift Testing APIs: issue severity, Test.cancel(), attachments#10
Open
nashysolutions-bot wants to merge 1 commit into
Open
Conversation
…chments Documents the three user-visible Swift Testing additions in Swift 6.3, slotted into the existing reference files: - expectations.md: Issue.record(_:severity:) with a .warning example - fundamentals.md: try Test.cancel() for mid-test bail-out, with do/don't guidance on preferring .disabled/#require for up-front skip conditions - xcode-workflows.md: Attachment.record(_:named:) for failure artifacts Signatures verified against swiftlang/swift-testing main (Test+Cancellation.swift, Attachments/Attachment.swift). Closes AvdLee#9
LuuOW
reviewed
Jun 14, 2026
LuuOW
left a comment
There was a problem hiding this comment.
Technical audit: code implementation verified for system consistency.
LuuOW
reviewed
Jun 17, 2026
LuuOW
left a comment
There was a problem hiding this comment.
Technical audit: Implementation verified for system consistency and engineering integrity.
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.
Closes #9.
What
Swift 6.3 (March 2026) added three user-visible Swift Testing APIs that the skill didn't yet cover. This documents them in the existing reference files (no new files, no structural change).
Issue.record(_:severity:)(.warning)expectations.mdtry Test.cancel(_:)fundamentals.mdAttachment.record(_:named:)xcode-workflows.mdEach addition follows the file's existing style: a short rule list (including a do/don't caveat) plus a minimal worked example.
Accuracy
Signatures verified against
swiftlang/swift-testingmain:Issue.record(_:severity:)—.warningkeeps the test passing.Test.cancel(_ comment: Comment? = nil) -> Never(Test+Cancellation.swift) — the example passes a comment and relies on theNeverreturn in aguard/else.Attachment.record(_ attachableValue:named:)(Attachments/Attachment.swift) — image attachments are supported on Apple/Windows in 6.3.Guidance choices
Test.cancel()is framed as a mid-test bail-out, with an explicit do/don't steering callers to.disabled/#requirewhen the skip condition is known up front, and warning against using it to mask a real failure..warningseverity is steered away from downgrading genuine correctness failures.Source: https://www.swift.org/blog/swift-6.3-released/