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.
1 parent ee37cd3 commit 56031b2Copy full SHA for 56031b2
Sources/Commands/SwiftTestTool.swift
@@ -195,7 +195,8 @@ public struct SwiftTestTool: SwiftCommand {
195
196
// validate XCTest available on darwin based systems
197
let toolchain = try swiftTool.getTargetToolchain()
198
- if try (toolchain.targetTriple.isDarwin() && toolchain.xctestPath == nil) || !swiftTool.getHostToolchain().swiftSDK.supportsTesting {
+ let isHostTestingAvailable = try swiftTool.getHostToolchain().swiftSDK.supportsTesting
199
+ if (toolchain.targetTriple.isDarwin() && toolchain.xctestPath == nil) || !isHostTestingAvailable {
200
throw TestError.xctestNotAvailable
201
}
202
} catch {
0 commit comments