Skip to content

Commit 909e86c

Browse files
committed
[feat] #146 App 테스트 타겟 추가
1 parent f56b44f commit 909e86c

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>ENABLE_TESTING_SEARCH_PATHS</key>
6+
<string>YES</string>
7+
</dict>
8+
</plist>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import ComposableArchitecture
2+
import XCTest
3+
4+
@testable import App
5+
6+
final class AppTests: XCTestCase {
7+
func test() {
8+
9+
}
10+
}

Projects/App/Project.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ let projectTarget: Target = .target(
7272
)
7373
)
7474

75+
let appTestTarget: Target = .makeTarget(
76+
name: "AppTests",
77+
product: .unitTests,
78+
bundleName: "AppTests",
79+
infoPlist: .dictionary(["ENABLE_TESTING_SEARCH_PATHS": "YES"]),
80+
resources: ["AppTests/Resources/**"],
81+
dependencies: [
82+
.target(projectTarget)
83+
]
84+
)
85+
7586
let project = Project(
7687
name: "App",
7788
options: .options(
@@ -80,6 +91,7 @@ let project = Project(
8091
),
8192
targets: [
8293
projectTarget,
94+
appTestTarget,
8395
shareExtensionTarget
8496
]
8597
)

graph.png

5.22 KB
Loading

0 commit comments

Comments
 (0)