-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
enhancementNew feature or requestNew feature or requestpublic-apiAffects public APIAffects public APItraitsIssues and PRs related to the trait subsystem or built-in traitsIssues and PRs related to the trait subsystem or built-in traits
Description
Description
We should have an API or mechanism to perform an action once inside a suite type before or after running all of that suite's tests.
Conceptually, this would be similar to XCTest's class-level +setUp and +tearDown APIs, or what some other testing libraries call "BeforeAll" and "AfterAll". However, for a more modern Swift solution, it may be better to use a closure- or scoped access- style API, since that interoperates better with Swift concurrency and allows using @TaskLocal.
rdar://103616215
Expected behavior
No response
Actual behavior
No response
Steps to reproduce
No response
swift-testing version/commit hash
No response
Swift & OS version (output of swift --version && uname -a)
No response
sidepelican, DominikPalo, ArtemLyksa, edudnyk, vojtarylko and 2 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpublic-apiAffects public APIAffects public APItraitsIssues and PRs related to the trait subsystem or built-in traitsIssues and PRs related to the trait subsystem or built-in traits