We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if !os(WASI)
1 parent 855b841 commit 521dc68Copy full SHA for 521dc68
Sources/XCTestDynamicOverlay/XCTIsTesting.swift
@@ -1,9 +1,11 @@
1
import Foundation
2
3
+#if !os(WASI)
4
public let _XCTIsTesting: Bool = {
5
ProcessInfo.processInfo.environment.keys.contains("XCTestSessionIdentifier")
6
|| ProcessInfo.processInfo.arguments.first
7
.flatMap(URL.init(fileURLWithPath:))
8
.map { $0.lastPathComponent == "xctest" || $0.pathExtension == "xctest" }
9
?? false
10
}()
11
+#endif
0 commit comments