diff --git a/Tests/CommandsTests/TestCommandTests.swift b/Tests/CommandsTests/TestCommandTests.swift index cc1b210dd5e..693d53672a3 100644 --- a/Tests/CommandsTests/TestCommandTests.swift +++ b/Tests/CommandsTests/TestCommandTests.swift @@ -276,7 +276,7 @@ final class TestCommandTests: CommandsTestCase { } func testBasicSwiftTestingIntegration() async throws { -#if !canImport(Testing) +#if !canImport(TestingDisabled) try XCTSkipUnless( nil != Environment.current["SWIFT_PM_SWIFT_TESTING_TESTS_ENABLED"], "Skipping \(#function) because swift-testing tests are not explicitly enabled" @@ -292,7 +292,7 @@ final class TestCommandTests: CommandsTestCase { } func testBasicSwiftTestingIntegration_ExperimentalFlag() async throws { -#if !canImport(Testing) +#if !canImport(TestingDisabled) try XCTSkipUnless( nil != Environment.current["SWIFT_PM_SWIFT_TESTING_TESTS_ENABLED"], "Skipping \(#function) because swift-testing tests are not explicitly enabled" diff --git a/Tests/WorkspaceTests/InitTests.swift b/Tests/WorkspaceTests/InitTests.swift index 788675efd2b..c6d09f26b74 100644 --- a/Tests/WorkspaceTests/InitTests.swift +++ b/Tests/WorkspaceTests/InitTests.swift @@ -182,7 +182,7 @@ final class InitTests: XCTestCase { XCTAssertMatch(testFileContents, .contains(#"@Test func example() async throws"#)) XCTAssertNoMatch(testFileContents, .contains("func testExample() throws")) -#if canImport(Testing) +#if canImport(TestingDisabled) // Try building it await XCTAssertBuilds(path) let triple = try UserToolchain.default.targetTriple @@ -219,7 +219,7 @@ final class InitTests: XCTestCase { XCTAssertMatch(testFileContents, .contains(#"@Test func example() async throws"#)) XCTAssertMatch(testFileContents, .contains("func testExample() throws")) -#if canImport(Testing) +#if canImport(TestingDisabled) // Try building it await XCTAssertBuilds(path) let triple = try UserToolchain.default.targetTriple @@ -255,7 +255,7 @@ final class InitTests: XCTestCase { XCTAssertNoSuchPath(path.appending("Tests")) -#if canImport(Testing) +#if canImport(TestingDisabled) // Try building it await XCTAssertBuilds(path) let triple = try UserToolchain.default.targetTriple