Skip to content

Commit 819fbaf

Browse files
committed
Add CoreTests to Xcode test targets
1 parent 93df948 commit 819fbaf

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

bazel/BUILD

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ load(
66

77
# Xcode Integration
88

9+
TEST_TARGETS = [
10+
"//Tests:BuiltInRulesTests",
11+
"//Tests:CLITests",
12+
"//Tests:CoreTests",
13+
"//Tests:ExtraRulesTests",
14+
"//Tests:FrameworkTests",
15+
"//Tests:GeneratedTests",
16+
"//Tests:IntegrationTests",
17+
"//Tests:MacroTests",
18+
]
19+
920
xcodeproj(
1021
name = "xcodeproj",
1122
install_directory = "",
@@ -19,27 +30,10 @@ xcodeproj(
1930
"--progress",
2031
],
2132
),
22-
test_action = xcode_schemes.test_action([
23-
"//Tests:BuiltInRulesTests",
24-
"//Tests:CLITests",
25-
"//Tests:ExtraRulesTests",
26-
"//Tests:FrameworkTests",
27-
"//Tests:GeneratedTests",
28-
"//Tests:IntegrationTests",
29-
"//Tests:MacroTests",
30-
]),
33+
test_action = xcode_schemes.test_action(TEST_TARGETS),
3134
),
3235
],
33-
top_level_targets = [
34-
"//:swiftlint",
35-
"//Tests:BuiltInRulesTests",
36-
"//Tests:CLITests",
37-
"//Tests:ExtraRulesTests",
38-
"//Tests:FrameworkTests",
39-
"//Tests:GeneratedTests",
40-
"//Tests:IntegrationTests",
41-
"//Tests:MacroTests",
42-
],
36+
top_level_targets = ["//:swiftlint"] + TEST_TARGETS,
4337
)
4438

4539
# Release Files

0 commit comments

Comments
 (0)