Skip to content

Commit

Permalink
Add Cuckoo testing search path (#6195)
Browse files Browse the repository at this point in the history
To allow compilation of Cuckoo dependent targets, I have added Cuckoo into the hard coded list
  • Loading branch information
danibachar committed Apr 16, 2024
1 parent 159c32e commit 77acd40
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ public final class PackageInfoMapper: PackageInfoMapping {
"XCTVapor", // https://github.com/vapor/vapor
"MockableTest", // https://github.com/Kolos65/Mockable.git
"Testing", // https://github.com/apple/swift-testing
"Cuckoo", // https://github.com/Brightify/Cuckoo
].map {
($0, ["ENABLE_TESTING_SEARCH_PATHS": "YES"])
}
Expand Down
1 change: 1 addition & 0 deletions fixtures/app_with_spm_dependencies/App/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ let project = Project(
.target(name: "AppKit"),
.external(name: "Nimble"),
.external(name: "Testing"),
.external(name: "Cuckoo"),
],
settings: .targetSettings
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Cuckoo
import Nimble
import Testing

Expand Down
2 changes: 2 additions & 0 deletions fixtures/app_with_spm_dependencies/Tuist/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ let package = Package(
.package(path: "../LocalSwiftPackage"),
.package(path: "../StringifyMacro"),
.package(url: "https://github.com/kishikawakatsumi/UICKeyChainStore", exact: "2.2.1"),
// Has XCTest API in a non-test target. Tuist will add Test Search path to support it
.package(url: "https://github.com/Brightify/Cuckoo.git", exact: "1.10.4"),
]
)

0 comments on commit 77acd40

Please sign in to comment.