-
Notifications
You must be signed in to change notification settings - Fork 120
Labels
concurrencyπ Swift concurrency/sendability issuesπ Swift concurrency/sendability issuesenhancementNew 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
Milestone
Description
Description
The old XCTest based test case:
func testDemo() throws {
let value: Int? = ...
guard let value else {
throw XCTSkip("Some skip message here")
}
XCTAssertEqual(value, 3)
}
The closest migrating to swift-testing I could think of.
func testDemo() throws {
let value: Int? = ...
guard let value else {
withKnownIssue {
throw "Some skip message here"
}
return
}
#expect(BloomFilter(type: type).value == expectedValue)
}
extension String: Error {}
Expected behavior
XCSkip
have an equivalent in swift-testing
Actual behavior
XCSkip
have no equivalent in swift-testing
Steps to reproduce
No response
swift-testing version/commit hash
No response
Swift & OS version (output of swift --version ; uname -a
)
No response
lin72h
Metadata
Metadata
Assignees
Labels
concurrencyπ Swift concurrency/sendability issuesπ Swift concurrency/sendability issuesenhancementNew 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