Skip to content

Commit 15588c1

Browse files
committed
wip
1 parent fc4226a commit 15588c1

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

Examples/ExamplesTests/SwiftTestingTests.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,14 @@
8888
@Test func withExpectedIssueDoesNotFail() {
8989
withExpectedIssue {}
9090
}
91+
92+
@Test func withExpectedIssueDoesNotFailAsync() async {
93+
await withExpectedIssue {
94+
await Task.yield()
95+
}
96+
}
9197
}
9298
#endif
93-
9499
#endif
95100

96101
private struct Failure: Error {}

Sources/IssueReporting/Internal/AppHostWarning.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extension String {
3838
3939
For more information (and workarounds), see "Testing gotchas":
4040
41-
https://pointfreeco.github.io/swift-dependencies/main/documentation/dependencies/testing#Testing-gotchas
41+
https://swiftpackageindex.com/pointfreeco/swift-dependencies/main/documentation/dependencies/testing#Testing-gotchas
4242
"""
4343

4444
return isEmpty

Sources/IssueReporting/Internal/SwiftTesting.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ func _withKnownIssue(
148148
To fix this, add "IssueReportingTestSupport" as a dependency to your test target.
149149
"""
150150
)
151+
try? body()
151152
#endif
152153
return
153154
}
@@ -221,6 +222,7 @@ func _withKnownIssue(
221222
To fix this, add "IssueReportingTestSupport" as a dependency to your test target.
222223
"""
223224
)
225+
try? await body()
224226
#endif
225227
return
226228
}

Sources/IssueReporting/Internal/XCTest.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ func _XCTFail(
3333
#endif
3434
printError(
3535
"""
36-
\(file):\(line): A failure was recorded without linking the XCTest framework.
36+
\(file):\(line): A failure was recorded without linking the XCTest framework\
37+
\(message.isEmpty ? "" : ": \(message)")
3738
3839
To fix this, add "IssueReportingTestSupport" as a dependency to your test target.
3940
"""

0 commit comments

Comments
 (0)