Skip to content

Commit 8ec596a

Browse files
committed
Changed a test to fail. Enabled Code Coverage
1 parent a8afae2 commit 8ec596a

File tree

8 files changed

+587
-1164
lines changed

8 files changed

+587
-1164
lines changed

KiwiTicTacToe.xcodeproj/project.pbxproj

Lines changed: 554 additions & 1145 deletions
Large diffs are not rendered by default.

KiwiTicTacToe.xcodeproj/xcshareddata/xcschemes/KiwiTicTacToe.xcscheme

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0510"
3+
LastUpgradeVersion = "0700"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -23,10 +23,11 @@
2323
</BuildActionEntries>
2424
</BuildAction>
2525
<TestAction
26+
buildConfiguration = "Debug"
2627
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2728
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2829
shouldUseLaunchSchemeArgsEnv = "YES"
29-
buildConfiguration = "Debug">
30+
codeCoverageEnabled = "YES">
3031
<Testables>
3132
<TestableReference
3233
skipped = "NO">
@@ -48,17 +49,21 @@
4849
ReferencedContainer = "container:KiwiTicTacToe.xcodeproj">
4950
</BuildableReference>
5051
</MacroExpansion>
52+
<AdditionalOptions>
53+
</AdditionalOptions>
5154
</TestAction>
5255
<LaunchAction
56+
buildConfiguration = "Debug"
5357
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5458
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
5559
launchStyle = "0"
5660
useCustomWorkingDirectory = "NO"
57-
buildConfiguration = "Debug"
5861
ignoresPersistentStateOnLaunch = "NO"
5962
debugDocumentVersioning = "YES"
63+
debugServiceExtension = "internal"
6064
allowLocationSimulation = "YES">
61-
<BuildableProductRunnable>
65+
<BuildableProductRunnable
66+
runnableDebuggingMode = "0">
6267
<BuildableReference
6368
BuildableIdentifier = "primary"
6469
BlueprintIdentifier = "E2F32E7D18D8CAA6008BF1DF"
@@ -71,12 +76,13 @@
7176
</AdditionalOptions>
7277
</LaunchAction>
7378
<ProfileAction
79+
buildConfiguration = "Release"
7480
shouldUseLaunchSchemeArgsEnv = "YES"
7581
savedToolIdentifier = ""
7682
useCustomWorkingDirectory = "NO"
77-
buildConfiguration = "Release"
7883
debugDocumentVersioning = "YES">
79-
<BuildableProductRunnable>
84+
<BuildableProductRunnable
85+
runnableDebuggingMode = "0">
8086
<BuildableReference
8187
BuildableIdentifier = "primary"
8288
BlueprintIdentifier = "E2F32E7D18D8CAA6008BF1DF"

KiwiTicTacToe/KiwiTicTacToe-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<key>CFBundleExecutable</key>
1010
<string>${EXECUTABLE_NAME}</string>
1111
<key>CFBundleIdentifier</key>
12-
<string>com.duchysoftware.${PRODUCT_NAME:rfc1034identifier}</string>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
1515
<key>CFBundleName</key>

KiwiTicTacToe/TTTAppDelegate.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1515
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
1616
// Override point for customization after application launch.
1717
self.window.backgroundColor = [UIColor whiteColor];
18+
UIViewController *viewController = [[UIViewController alloc] init];
19+
self.window.rootViewController = viewController;
1820
[self.window makeKeyAndVisible];
1921
return YES;
2022
}

KiwiTicTacToeTests/KiwiTicTacToeTests-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>${EXECUTABLE_NAME}</string>
99
<key>CFBundleIdentifier</key>
10-
<string>com.duchysoftware.${PRODUCT_NAME:rfc1034identifier}</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundlePackageType</key>

KiwiTicTacToeTests/TicTacToeSpec.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
[sut insertPlayer:TicTacToePlayerOne atPositionIndex:4 completion:nil];
223223
[sut insertPlayer:TicTacToePlayerTwo atPositionIndex:3 completion:nil];
224224
[sut insertPlayer:TicTacToePlayerOne atPositionIndex:6 completion:^(TicTacToePositionOutcome outcome, NSError *error) {
225-
[[theValue(outcome) should] equal:theValue(TicTacToePositionOutcomeWin)];
225+
[[theValue(outcome) shouldNot] equal:theValue(TicTacToePositionOutcomeWin)];
226226
}];
227227
});
228228
});

Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-KiwiTicTacToeTests-Kiwi.xcscheme

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-KiwiTicTacToeTests.xcscheme

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)