Skip to content

Commit 1a0ba32

Browse files
committed
Tests: remove @testable import SPMBuildCore
Use the newly extended APIs for testing and use a non-testable import of the package, avoiding a recompilation.
1 parent 22cc919 commit 1a0ba32

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Tests/BuildTests/PluginInvocationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import PackageLoading
2121
@_spi(SwiftPMInternal)
2222
import PackageModel
2323

24-
@testable import SPMBuildCore
24+
import SPMBuildCore
2525
import _InternalBuildTestSupport
2626
import _InternalTestSupport
2727
import Workspace

Tests/BuildTests/PluginsBuildPlanTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import Basics
1414
import _InternalTestSupport
15-
@testable import SPMBuildCore
15+
import SPMBuildCore
1616
import XCTest
1717
import PackageModel
1818

Tests/FunctionalTests/PluginTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import _Concurrency
1717
import PackageGraph
1818
import PackageLoading
1919
import PackageModel
20-
@testable import SPMBuildCore
20+
import SPMBuildCore
2121
import _InternalTestSupport
2222
import Workspace
2323
import Testing

Tests/PackageModelTests/SwiftSDKTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Basics
1515
@_spi(SwiftPMInternal)
1616
import PackageModel
1717

18-
@testable import SPMBuildCore
18+
import SPMBuildCore
1919
import XCTest
2020

2121
private let bundleRootPath = try! AbsolutePath(validating: "/tmp/cross-toolchain")

Tests/SPMBuildCoreTests/BuildParametersTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@testable import SPMBuildCore
13+
import SPMBuildCore
1414
import Basics
1515
import struct PackageModel.BuildEnvironment
1616
import _InternalTestSupport

0 commit comments

Comments
 (0)