Skip to content

Commit ca47f73

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

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

Tests/BuildTests/PrepareForIndexTests.swift

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

1313
import Build
1414
import Foundation
15-
@testable import Commands
15+
import Commands
1616
import CoreCommands
1717
import LLBuildManifest
1818
import _InternalTestSupport

Tests/CommandsTests/BuildCommandTests.swift

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

1313
import Foundation
1414
import Basics
15-
@testable import Commands
15+
import Commands
1616
import CoreCommands
1717
import PackageGraph
1818
import PackageLoading

Tests/CommandsTests/MermaidPackageSerializerTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import struct PackageModel.ProductDescription
2121
import struct PackageModel.TargetDescription
2222
import func _InternalTestSupport.XCTAssertNoDiagnostics
2323

24-
@testable
2524
import Commands
2625

2726
import XCTest

Tests/CommandsTests/PackageCommandTests.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 CoreCommands
15-
@testable import Commands
15+
import Commands
1616
import Foundation
1717

1818
@_spi(DontAdoptOutsideOfSwiftPMExposedForBenchmarksAndTestsOnly)

Tests/CommandsTests/SwiftCommandStateTests.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 Build
15-
@testable import Commands
15+
import Commands
1616
import CoreCommands
1717

1818
@_spi(DontAdoptOutsideOfSwiftPMExposedForBenchmarksAndTestsOnly)

0 commit comments

Comments
 (0)