Skip to content

Exit tests should be able to capture values #1157

@grynspan

Description

@grynspan
Contributor

Exit tests should be able to capture values. We can constrain this to values conforming to Sendable and Codable.

An implementation exists on the main branch guarded by the package trait ExperimentalExitTestValueCapture and @_spi(Experimental).

Activity

added this to the Swift 6.x milestone on Jun 16, 2025
self-assigned this
on Jun 16, 2025
added theissue type on Jun 16, 2025
added
enhancementNew feature or request
api-proposalAPI proposal PRs (documentation only)
exit-tests☠️ Work related to exit tests
parameterized-testingRelated to parameterized testing functionality
macros🔭 Related to Swift macros such as @Test or #expect
on Jun 16, 2025
grynspan

grynspan commented on Jun 16, 2025

@grynspan
ContributorAuthor

Tracked internally as rdar://153389318.

linked a pull request that will close this issue on Jun 19, 2025
grynspan

grynspan commented on Jun 26, 2025

@grynspan
ContributorAuthor
added
triagedThis issue has undergone initial triage
on Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api-proposalAPI proposal PRs (documentation only)enhancementNew feature or requestexit-tests☠️ Work related to exit testsmacros🔭 Related to Swift macros such as @Test or #expectparameterized-testingRelated to parameterized testing functionalitypublic-apiAffects public APItriagedThis issue has undergone initial triage

Projects

No projects

Relationships

None yet

    Development

    Participants

    @grynspan

    Issue actions

      Exit tests should be able to capture values · Issue #1157 · swiftlang/swift-testing