Skip to content

Commit d0ff2ff

Browse files
committed
Temporarily disable new Swift Testing tests
`canImport(Testing)` currently fails on the full toolchain test jobs due to various issues when building for both x86 and arm64. Temporarily remove this check until we can fix the underlying problems there.
1 parent 05db61b commit d0ff2ff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tests/CommandsTests/TestCommandTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ final class TestCommandTests: CommandsTestCase {
276276
}
277277

278278
func testBasicSwiftTestingIntegration() async throws {
279-
#if !canImport(Testing)
279+
#if !canImport(TestingDisabled)
280280
try XCTSkipUnless(
281281
nil != Environment.current["SWIFT_PM_SWIFT_TESTING_TESTS_ENABLED"],
282282
"Skipping \(#function) because swift-testing tests are not explicitly enabled"
@@ -292,7 +292,7 @@ final class TestCommandTests: CommandsTestCase {
292292
}
293293

294294
func testBasicSwiftTestingIntegration_ExperimentalFlag() async throws {
295-
#if !canImport(Testing)
295+
#if !canImport(TestingDisabled)
296296
try XCTSkipUnless(
297297
nil != Environment.current["SWIFT_PM_SWIFT_TESTING_TESTS_ENABLED"],
298298
"Skipping \(#function) because swift-testing tests are not explicitly enabled"

Tests/WorkspaceTests/InitTests.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ final class InitTests: XCTestCase {
182182
XCTAssertMatch(testFileContents, .contains(#"@Test func example() async throws"#))
183183
XCTAssertNoMatch(testFileContents, .contains("func testExample() throws"))
184184

185-
#if canImport(Testing)
185+
#if canImport(TestingDisabled)
186186
// Try building it
187187
await XCTAssertBuilds(path)
188188
let triple = try UserToolchain.default.targetTriple
@@ -219,7 +219,7 @@ final class InitTests: XCTestCase {
219219
XCTAssertMatch(testFileContents, .contains(#"@Test func example() async throws"#))
220220
XCTAssertMatch(testFileContents, .contains("func testExample() throws"))
221221

222-
#if canImport(Testing)
222+
#if canImport(TestingDisabled)
223223
// Try building it
224224
await XCTAssertBuilds(path)
225225
let triple = try UserToolchain.default.targetTriple
@@ -255,7 +255,7 @@ final class InitTests: XCTestCase {
255255

256256
XCTAssertNoSuchPath(path.appending("Tests"))
257257

258-
#if canImport(Testing)
258+
#if canImport(TestingDisabled)
259259
// Try building it
260260
await XCTAssertBuilds(path)
261261
let triple = try UserToolchain.default.targetTriple

0 commit comments

Comments
 (0)