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 56c1eff commit de3ea52Copy full SHA for de3ea52
Sources/Commands/Utilities/TestingSupport.swift
@@ -189,6 +189,11 @@ enum TestingSupport {
189
env.appendPath(key: "DYLD_LIBRARY_PATH", value: sdkPlatformFrameworksPath.lib.pathString)
190
}
191
192
+ // We aren't using XCTest's harness logic to run Swift Testing tests.
193
+ if library == .xctest {
194
+ env["SWIFT_TESTING_ENABLED"] = "0"
195
+ }
196
+
197
// Fast path when no sanitizers are enabled.
198
if sanitizers.isEmpty {
199
return env
@@ -205,10 +210,6 @@ enum TestingSupport {
205
210
206
211
207
212
env["DYLD_INSERT_LIBRARIES"] = runtimes.joined(separator: ":")
208
-
209
- if library == .xctest {
- env["SWIFT_TESTING_ENABLED"] = "0"
- }
213
214
#endif
215
0 commit comments