Skip to content

Commit 409f3f3

Browse files
committed
Fix unit testing with Xcode
1 parent af302cc commit 409f3f3

File tree

2 files changed

+52
-2
lines changed

2 files changed

+52
-2
lines changed

.swiftpm/GateEngine.xctestplan

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"configurations" : [
3+
{
4+
"id" : "7576A219-2196-4307-9247-27D208EA98E1",
5+
"name" : "Test Scheme Action",
6+
"options" : {
7+
8+
}
9+
}
10+
],
11+
"defaultOptions" : {
12+
"codeCoverage" : false
13+
},
14+
"testTargets" : [
15+
{
16+
"target" : {
17+
"containerPath" : "container:",
18+
"identifier" : "GameMathTests",
19+
"name" : "GameMathTests"
20+
}
21+
},
22+
{
23+
"target" : {
24+
"containerPath" : "container:",
25+
"identifier" : "GameMathSIMDTests",
26+
"name" : "GameMathSIMDTests"
27+
}
28+
},
29+
{
30+
"target" : {
31+
"containerPath" : "container:",
32+
"identifier" : "GateEngineTests",
33+
"name" : "GateEngineTests"
34+
}
35+
},
36+
{
37+
"target" : {
38+
"containerPath" : "container:",
39+
"identifier" : "GravityTests",
40+
"name" : "GravityTests"
41+
}
42+
}
43+
],
44+
"version" : 1
45+
}

.swiftpm/xcode/xcshareddata/xcschemes/GateEngine.xcscheme

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@
2727
buildConfiguration = "Debug"
2828
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2929
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30-
shouldUseLaunchSchemeArgsEnv = "YES"
31-
shouldAutocreateTestPlan = "YES">
30+
shouldUseLaunchSchemeArgsEnv = "YES">
31+
<TestPlans>
32+
<TestPlanReference
33+
reference = "container:.swiftpm/GateEngine.xctestplan"
34+
default = "YES">
35+
</TestPlanReference>
36+
</TestPlans>
3237
</TestAction>
3338
<LaunchAction
3439
buildConfiguration = "Debug"

0 commit comments

Comments
 (0)