Skip to content

Commit 24736bf

Browse files
committed
Use Swift package manager to integrate KIF into main project
1 parent f5d5fe1 commit 24736bf

11 files changed

Lines changed: 107 additions & 624 deletions

KIF.xcodeproj/project.pbxproj

Lines changed: 24 additions & 534 deletions
Large diffs are not rendered by default.

KIF.xcodeproj/xcshareddata/xcschemes/KIF.xcscheme

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1010"
4-
version = "1.3">
3+
LastUpgradeVersion = "2650"
4+
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"
7-
buildImplicitDependencies = "YES">
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
89
<BuildActionEntries>
910
<BuildActionEntry
1011
buildForTesting = "YES"
@@ -14,10 +15,10 @@
1415
buildForAnalyzing = "YES">
1516
<BuildableReference
1617
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "EABD46791857A0C700A5F081"
18-
BuildableName = "libKIF.a"
18+
BlueprintIdentifier = "KIF"
19+
BuildableName = "KIF"
1920
BlueprintName = "KIF"
20-
ReferencedContainer = "container:KIF.xcodeproj">
21+
ReferencedContainer = "container:">
2122
</BuildableReference>
2223
</BuildActionEntry>
2324
</BuildActionEntries>
@@ -27,24 +28,21 @@
2728
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2829
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2930
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<MacroExpansion>
31-
<BuildableReference
32-
BuildableIdentifier = "primary"
33-
BlueprintIdentifier = "EABD46791857A0C700A5F081"
34-
BuildableName = "libKIF.a"
35-
BlueprintName = "KIF"
36-
ReferencedContainer = "container:KIF.xcodeproj">
37-
</BuildableReference>
38-
</MacroExpansion>
31+
<TestPlans>
32+
<TestPlanReference
33+
reference = "container:KIF.xctestplan"
34+
default = "YES">
35+
</TestPlanReference>
36+
</TestPlans>
3937
<Testables>
4038
<TestableReference
4139
skipped = "NO">
4240
<BuildableReference
4341
BuildableIdentifier = "primary"
44-
BlueprintIdentifier = "EABD46AD1857A0F300A5F081"
45-
BuildableName = "KIFTests - XCTest.xctest"
42+
BlueprintIdentifier = "KIFTests"
43+
BuildableName = "KIFTests"
4644
BlueprintName = "KIFTests"
47-
ReferencedContainer = "container:KIF.xcodeproj">
45+
ReferencedContainer = "container:">
4846
</BuildableReference>
4947
</TestableReference>
5048
</Testables>
@@ -59,27 +57,6 @@
5957
debugDocumentVersioning = "YES"
6058
debugServiceExtension = "internal"
6159
allowLocationSimulation = "YES">
62-
<MacroExpansion>
63-
<BuildableReference
64-
BuildableIdentifier = "primary"
65-
BlueprintIdentifier = "EABD46791857A0C700A5F081"
66-
BuildableName = "libKIF.a"
67-
BlueprintName = "KIF"
68-
ReferencedContainer = "container:KIF.xcodeproj">
69-
</BuildableReference>
70-
</MacroExpansion>
71-
<EnvironmentVariables>
72-
<EnvironmentVariable
73-
key = "KIF_PRINTVIEWTREEONFAILURE"
74-
value = "YES"
75-
isEnabled = "YES">
76-
</EnvironmentVariable>
77-
<EnvironmentVariable
78-
key = "VISUALIZE_TOUCHES"
79-
value = "YES"
80-
isEnabled = "YES">
81-
</EnvironmentVariable>
82-
</EnvironmentVariables>
8360
</LaunchAction>
8461
<ProfileAction
8562
buildConfiguration = "Release"
@@ -90,10 +67,10 @@
9067
<MacroExpansion>
9168
<BuildableReference
9269
BuildableIdentifier = "primary"
93-
BlueprintIdentifier = "EABD46791857A0C700A5F081"
94-
BuildableName = "libKIF.a"
70+
BlueprintIdentifier = "KIF"
71+
BuildableName = "KIF"
9572
BlueprintName = "KIF"
96-
ReferencedContainer = "container:KIF.xcodeproj">
73+
ReferencedContainer = "container:">
9774
</BuildableReference>
9875
</MacroExpansion>
9976
</ProfileAction>

KIF.xcodeproj/xcshareddata/xcschemes/KIF Documentation.xcscheme renamed to KIF.xcodeproj/xcshareddata/xcschemes/KIFTests.xcscheme

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,29 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1010"
4-
version = "1.3">
3+
LastUpgradeVersion = "2650"
4+
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"
7-
buildImplicitDependencies = "YES">
8-
<BuildActionEntries>
9-
<BuildActionEntry
10-
buildForTesting = "YES"
11-
buildForRunning = "YES"
12-
buildForProfiling = "YES"
13-
buildForArchiving = "YES"
14-
buildForAnalyzing = "YES">
15-
<BuildableReference
16-
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "A88930091685088F00FC7C63"
18-
BuildableName = "KIF Documentation"
19-
BlueprintName = "KIF Documentation"
20-
ReferencedContainer = "container:KIF.xcodeproj">
21-
</BuildableReference>
22-
</BuildActionEntry>
23-
</BuildActionEntries>
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
249
</BuildAction>
2510
<TestAction
2611
buildConfiguration = "Debug"
2712
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2813
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
shouldUseLaunchSchemeArgsEnv = "YES">
14+
shouldUseLaunchSchemeArgsEnv = "YES"
15+
shouldAutocreateTestPlan = "YES">
3016
<Testables>
17+
<TestableReference
18+
skipped = "NO">
19+
<BuildableReference
20+
BuildableIdentifier = "primary"
21+
BlueprintIdentifier = "EABD46AD1857A0F300A5F081"
22+
BuildableName = "KIFTests - XCTest.xctest"
23+
BlueprintName = "KIFTests"
24+
ReferencedContainer = "container:KIF.xcodeproj">
25+
</BuildableReference>
26+
</TestableReference>
3127
</Testables>
3228
</TestAction>
3329
<LaunchAction
@@ -39,23 +35,34 @@
3935
ignoresPersistentStateOnLaunch = "NO"
4036
debugDocumentVersioning = "YES"
4137
debugServiceExtension = "internal"
42-
allowLocationSimulation = "YES">
43-
<MacroExpansion>
38+
allowLocationSimulation = "YES"
39+
queueDebuggingEnableBacktraceRecording = "Yes">
40+
<BuildableProductRunnable
41+
runnableDebuggingMode = "0">
4442
<BuildableReference
4543
BuildableIdentifier = "primary"
46-
BlueprintIdentifier = "A88930091685088F00FC7C63"
47-
BuildableName = "KIF Documentation"
48-
BlueprintName = "KIF Documentation"
44+
BlueprintIdentifier = "EB60ECC0177F8C83005A041A"
45+
BuildableName = "TestHost.app"
46+
BlueprintName = "TestHost"
4947
ReferencedContainer = "container:KIF.xcodeproj">
5048
</BuildableReference>
51-
</MacroExpansion>
49+
</BuildableProductRunnable>
5250
</LaunchAction>
5351
<ProfileAction
5452
buildConfiguration = "Release"
5553
shouldUseLaunchSchemeArgsEnv = "YES"
5654
savedToolIdentifier = ""
5755
useCustomWorkingDirectory = "NO"
5856
debugDocumentVersioning = "YES">
57+
<MacroExpansion>
58+
<BuildableReference
59+
BuildableIdentifier = "primary"
60+
BlueprintIdentifier = "EB60ECC0177F8C83005A041A"
61+
BuildableName = "TestHost.app"
62+
BlueprintName = "TestHost"
63+
ReferencedContainer = "container:KIF.xcodeproj">
64+
</BuildableReference>
65+
</MacroExpansion>
5966
</ProfileAction>
6067
<AnalyzeAction
6168
buildConfiguration = "Debug">

KIF.xctestplan

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"configurations" : [
3+
{
4+
"id" : "28683086-9317-4D0B-9456-520884DD03F4",
5+
"name" : "Test Scheme Action",
6+
"options" : {
7+
8+
}
9+
}
10+
],
11+
"defaultOptions" : {
12+
"performanceAntipatternCheckerEnabled" : true
13+
},
14+
"testTargets" : [
15+
{
16+
"target" : {
17+
"containerPath" : "container:KIF.xcodeproj",
18+
"identifier" : "EABD46AD1857A0F300A5F081",
19+
"name" : "KIFTests"
20+
}
21+
}
22+
],
23+
"version" : 1
24+
}

Tests/KIFTests/AccessibilityIdentifierPullToRefreshTests.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
//
77
//
88

9-
#import <KIF/KIFTestCase.h>
10-
#import <KIF/KIFUITestActor-IdentifierTests.h>
11-
#import <KIF/KIFUIViewTestActor.h>
12-
13-
#import <KIF/KIFTestStepValidation.h>
9+
@import KIF;
1410

1511
@interface AccessibilityIdentifierPullToRefreshTests : KIFTestCase
1612
@end

Tests/KIFTests/AccessibilityIdentifierTests.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
//
77
//
88

9-
#import <KIF/KIFTestCase.h>
10-
#import <KIF/KIFUITestActor-IdentifierTests.h>
11-
#import <KIF/KIFTestStepValidation.h>
9+
@import KIF;
1210

1311
@interface AccessibilityIdentifierTests : KIFTestCase
1412
@end

Tests/KIFTests/KIFUIViewTestActor/PullToRefreshTests_ViewTestActor.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "KIFTestCase.h"
11-
#import "KIFUIViewTestActor.h"
10+
@import KIF;
1211

1312
@interface PullToRefreshTests_ViewTestActor : KIFTestCase
1413
@end

Tests/KIFTests/KIFUIViewTestActor/WebViewTests_ViewTestActor.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
//
77
//
88

9-
#import <KIF/KIFTestCase.h>
10-
#import <KIF/KIFUIViewTestActor.h>
11-
#import <KIF/KIFUITestActor-IdentifierTests.h>
12-
#import <KIF/KIFTestStepValidation.h>
9+
@import KIF;
1310

1411
@interface WebViewTests_ViewTestActor : KIFTestCase
1512
@end

Tests/KIFTests/PullToRefreshTests.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
//
77
//
88

9-
#import <KIF/KIFTestCase.h>
10-
#import <KIF/KIFUITestActor-IdentifierTests.h>
11-
#import <KIF/KIFUIViewTestActor.h>
12-
#import <KIF/KIFTestStepValidation.h>
9+
@import KIF;
1310

1411
@interface PullToRefreshTests : KIFTestCase
1512
@end

Tests/KIFTests/SwiftUI Tests/SwiftUITypingTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77

88
#import <KIF/KIF.h>
9-
#import "KIFTestStepValidation.h"
9+
#import <KIF/KIFTestStepValidation.h>
1010

1111
@interface SwiftUITypingTests : KIFTestCase
1212
@end

0 commit comments

Comments
 (0)