Skip to content

Commit

Permalink
fix: Target Tests추가 시 구현체 의존성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteHyun committed Nov 20, 2023
1 parent 5f61d5a commit 005f5ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions iOS/Tuist/ProjectDescriptionHelpers/Target+Templates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public extension [Target] {
bundleId: "\(ProjectEnvironment.default.prefixBundleID).\(name.lowercased())Tests",
sources: "Tests/**",
scripts: [.swiftLint, .swiftFormat],
dependencies: testDependencies
dependencies: testDependencies + [.target(name: name)]
)
)
}
Expand All @@ -81,7 +81,7 @@ public extension [Target] {
bundleId: "\(ProjectEnvironment.default.prefixBundleID).\(name.lowercased())UITests",
sources: "UITests/**",
scripts: [.swiftLint, .swiftFormat],
dependencies: testDependencies
dependencies: testDependencies + [.target(name: name)]
)
)
}
Expand Down Expand Up @@ -140,7 +140,7 @@ public extension [Target] {
bundleId: "\(ProjectEnvironment.default.prefixBundleID).\(feature.targetName)FeatureTests",
sources: "Tests/**",
scripts: [.swiftLint, .swiftFormat],
dependencies: testDependencies
dependencies: testDependencies + [.target(name: "\(feature.targetName)Feature")]
)
)
}
Expand All @@ -154,7 +154,7 @@ public extension [Target] {
bundleId: "\(ProjectEnvironment.default.prefixBundleID).\(feature.targetName)FeatureUITests",
sources: "UITests/**",
scripts: [.swiftLint, .swiftFormat],
dependencies: testDependencies
dependencies: testDependencies + [.target(name: "\(feature.targetName)Feature")]
)
)
}
Expand Down Expand Up @@ -207,7 +207,7 @@ public extension [Target] {
bundleId: "\(ProjectEnvironment.default.prefixBundleID).\(name)FeatureTests",
sources: "Tests/**",
scripts: [.swiftLint, .swiftFormat],
dependencies: testDependencies
dependencies: testDependencies + [.target(name: name)]
)
)
}
Expand All @@ -221,7 +221,7 @@ public extension [Target] {
bundleId: "\(ProjectEnvironment.default.prefixBundleID).\(name)FeatureUITests",
sources: "UITests/**",
scripts: [.swiftLint, .swiftFormat],
dependencies: testDependencies
dependencies: testDependencies + [.target(name: name)]
)
)
}
Expand Down

0 comments on commit 005f5ad

Please sign in to comment.