Skip to content

Commit 64c5681

Browse files
committed
added tests files
1 parent 835447a commit 64c5681

File tree

5 files changed

+366
-0
lines changed

5 files changed

+366
-0
lines changed

LiftTarget_iOS.xcodeproj/project.pbxproj

+238
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,28 @@
3030
40AE685C28A93AEA00717AA4 /* WaitState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40AE685B28A93AEA00717AA4 /* WaitState.swift */; };
3131
40AE686028A93BEC00717AA4 /* ShootingState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40AE685F28A93BEC00717AA4 /* ShootingState.swift */; };
3232
40AE686228A94E7A00717AA4 /* PauseState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40AE686128A94E7A00717AA4 /* PauseState.swift */; };
33+
40AE687028A97C8F00717AA4 /* LiftTarget_iOSTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40AE686F28A97C8F00717AA4 /* LiftTarget_iOSTests.swift */; };
34+
40AE687D28A97CCB00717AA4 /* LiftTarget_iOSUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40AE687C28A97CCB00717AA4 /* LiftTarget_iOSUITests.swift */; };
35+
40AE687F28A97CCB00717AA4 /* LiftTarget_iOSUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40AE687E28A97CCB00717AA4 /* LiftTarget_iOSUITestsLaunchTests.swift */; };
3336
/* End PBXBuildFile section */
3437

38+
/* Begin PBXContainerItemProxy section */
39+
40AE687128A97C8F00717AA4 /* PBXContainerItemProxy */ = {
40+
isa = PBXContainerItemProxy;
41+
containerPortal = 40A8F9EF287049FF000BCFF6 /* Project object */;
42+
proxyType = 1;
43+
remoteGlobalIDString = 40A8F9F6287049FF000BCFF6;
44+
remoteInfo = LiftTarget_iOS;
45+
};
46+
40AE688028A97CCB00717AA4 /* PBXContainerItemProxy */ = {
47+
isa = PBXContainerItemProxy;
48+
containerPortal = 40A8F9EF287049FF000BCFF6 /* Project object */;
49+
proxyType = 1;
50+
remoteGlobalIDString = 40A8F9F6287049FF000BCFF6;
51+
remoteInfo = LiftTarget_iOS;
52+
};
53+
/* End PBXContainerItemProxy section */
54+
3555
/* Begin PBXFileReference section */
3656
402223C5289B039800859817 /* ConfigureGameController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConfigureGameController.swift; sourceTree = "<group>"; };
3757
402223CD289C74F800859817 /* MainController+Ext.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MainController+Ext.swift"; sourceTree = "<group>"; };
@@ -58,6 +78,11 @@
5878
40AE685B28A93AEA00717AA4 /* WaitState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WaitState.swift; sourceTree = "<group>"; };
5979
40AE685F28A93BEC00717AA4 /* ShootingState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShootingState.swift; sourceTree = "<group>"; };
6080
40AE686128A94E7A00717AA4 /* PauseState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PauseState.swift; sourceTree = "<group>"; };
81+
40AE686D28A97C8F00717AA4 /* LiftTarget_iOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LiftTarget_iOSTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
82+
40AE686F28A97C8F00717AA4 /* LiftTarget_iOSTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LiftTarget_iOSTests.swift; sourceTree = "<group>"; };
83+
40AE687A28A97CCB00717AA4 /* LiftTarget_iOSUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LiftTarget_iOSUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
84+
40AE687C28A97CCB00717AA4 /* LiftTarget_iOSUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LiftTarget_iOSUITests.swift; sourceTree = "<group>"; };
85+
40AE687E28A97CCB00717AA4 /* LiftTarget_iOSUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LiftTarget_iOSUITestsLaunchTests.swift; sourceTree = "<group>"; };
6186
/* End PBXFileReference section */
6287

6388
/* Begin PBXFrameworksBuildPhase section */
@@ -68,6 +93,20 @@
6893
);
6994
runOnlyForDeploymentPostprocessing = 0;
7095
};
96+
40AE686A28A97C8F00717AA4 /* Frameworks */ = {
97+
isa = PBXFrameworksBuildPhase;
98+
buildActionMask = 2147483647;
99+
files = (
100+
);
101+
runOnlyForDeploymentPostprocessing = 0;
102+
};
103+
40AE687728A97CCB00717AA4 /* Frameworks */ = {
104+
isa = PBXFrameworksBuildPhase;
105+
buildActionMask = 2147483647;
106+
files = (
107+
);
108+
runOnlyForDeploymentPostprocessing = 0;
109+
};
71110
/* End PBXFrameworksBuildPhase section */
72111

73112
/* Begin PBXGroup section */
@@ -132,6 +171,8 @@
132171
isa = PBXGroup;
133172
children = (
134173
40A8F9F9287049FF000BCFF6 /* LiftTarget_iOS */,
174+
40AE686E28A97C8F00717AA4 /* LiftTarget_iOSTests */,
175+
40AE687B28A97CCB00717AA4 /* LiftTarget_iOSUITests */,
135176
40A8F9F8287049FF000BCFF6 /* Products */,
136177
);
137178
sourceTree = "<group>";
@@ -140,6 +181,8 @@
140181
isa = PBXGroup;
141182
children = (
142183
40A8F9F7287049FF000BCFF6 /* LiftTarget_iOS.app */,
184+
40AE686D28A97C8F00717AA4 /* LiftTarget_iOSTests.xctest */,
185+
40AE687A28A97CCB00717AA4 /* LiftTarget_iOSUITests.xctest */,
143186
);
144187
name = Products;
145188
sourceTree = "<group>";
@@ -222,6 +265,23 @@
222265
path = BusinessLogic;
223266
sourceTree = "<group>";
224267
};
268+
40AE686E28A97C8F00717AA4 /* LiftTarget_iOSTests */ = {
269+
isa = PBXGroup;
270+
children = (
271+
40AE686F28A97C8F00717AA4 /* LiftTarget_iOSTests.swift */,
272+
);
273+
path = LiftTarget_iOSTests;
274+
sourceTree = "<group>";
275+
};
276+
40AE687B28A97CCB00717AA4 /* LiftTarget_iOSUITests */ = {
277+
isa = PBXGroup;
278+
children = (
279+
40AE687C28A97CCB00717AA4 /* LiftTarget_iOSUITests.swift */,
280+
40AE687E28A97CCB00717AA4 /* LiftTarget_iOSUITestsLaunchTests.swift */,
281+
);
282+
path = LiftTarget_iOSUITests;
283+
sourceTree = "<group>";
284+
};
225285
/* End PBXGroup section */
226286

227287
/* Begin PBXNativeTarget section */
@@ -242,6 +302,42 @@
242302
productReference = 40A8F9F7287049FF000BCFF6 /* LiftTarget_iOS.app */;
243303
productType = "com.apple.product-type.application";
244304
};
305+
40AE686C28A97C8F00717AA4 /* LiftTarget_iOSTests */ = {
306+
isa = PBXNativeTarget;
307+
buildConfigurationList = 40AE687328A97C8F00717AA4 /* Build configuration list for PBXNativeTarget "LiftTarget_iOSTests" */;
308+
buildPhases = (
309+
40AE686928A97C8F00717AA4 /* Sources */,
310+
40AE686A28A97C8F00717AA4 /* Frameworks */,
311+
40AE686B28A97C8F00717AA4 /* Resources */,
312+
);
313+
buildRules = (
314+
);
315+
dependencies = (
316+
40AE687228A97C8F00717AA4 /* PBXTargetDependency */,
317+
);
318+
name = LiftTarget_iOSTests;
319+
productName = LiftTarget_iOSTests;
320+
productReference = 40AE686D28A97C8F00717AA4 /* LiftTarget_iOSTests.xctest */;
321+
productType = "com.apple.product-type.bundle.unit-test";
322+
};
323+
40AE687928A97CCB00717AA4 /* LiftTarget_iOSUITests */ = {
324+
isa = PBXNativeTarget;
325+
buildConfigurationList = 40AE688228A97CCB00717AA4 /* Build configuration list for PBXNativeTarget "LiftTarget_iOSUITests" */;
326+
buildPhases = (
327+
40AE687628A97CCB00717AA4 /* Sources */,
328+
40AE687728A97CCB00717AA4 /* Frameworks */,
329+
40AE687828A97CCB00717AA4 /* Resources */,
330+
);
331+
buildRules = (
332+
);
333+
dependencies = (
334+
40AE688128A97CCB00717AA4 /* PBXTargetDependency */,
335+
);
336+
name = LiftTarget_iOSUITests;
337+
productName = LiftTarget_iOSUITests;
338+
productReference = 40AE687A28A97CCB00717AA4 /* LiftTarget_iOSUITests.xctest */;
339+
productType = "com.apple.product-type.bundle.ui-testing";
340+
};
245341
/* End PBXNativeTarget section */
246342

247343
/* Begin PBXProject section */
@@ -255,6 +351,14 @@
255351
40A8F9F6287049FF000BCFF6 = {
256352
CreatedOnToolsVersion = 13.4.1;
257353
};
354+
40AE686C28A97C8F00717AA4 = {
355+
CreatedOnToolsVersion = 13.4.1;
356+
TestTargetID = 40A8F9F6287049FF000BCFF6;
357+
};
358+
40AE687928A97CCB00717AA4 = {
359+
CreatedOnToolsVersion = 13.4.1;
360+
TestTargetID = 40A8F9F6287049FF000BCFF6;
361+
};
258362
};
259363
};
260364
buildConfigurationList = 40A8F9F2287049FF000BCFF6 /* Build configuration list for PBXProject "LiftTarget_iOS" */;
@@ -271,6 +375,8 @@
271375
projectRoot = "";
272376
targets = (
273377
40A8F9F6287049FF000BCFF6 /* LiftTarget_iOS */,
378+
40AE686C28A97C8F00717AA4 /* LiftTarget_iOSTests */,
379+
40AE687928A97CCB00717AA4 /* LiftTarget_iOSUITests */,
274380
);
275381
};
276382
/* End PBXProject section */
@@ -288,6 +394,20 @@
288394
);
289395
runOnlyForDeploymentPostprocessing = 0;
290396
};
397+
40AE686B28A97C8F00717AA4 /* Resources */ = {
398+
isa = PBXResourcesBuildPhase;
399+
buildActionMask = 2147483647;
400+
files = (
401+
);
402+
runOnlyForDeploymentPostprocessing = 0;
403+
};
404+
40AE687828A97CCB00717AA4 /* Resources */ = {
405+
isa = PBXResourcesBuildPhase;
406+
buildActionMask = 2147483647;
407+
files = (
408+
);
409+
runOnlyForDeploymentPostprocessing = 0;
410+
};
291411
/* End PBXResourcesBuildPhase section */
292412

293413
/* Begin PBXSourcesBuildPhase section */
@@ -316,8 +436,38 @@
316436
);
317437
runOnlyForDeploymentPostprocessing = 0;
318438
};
439+
40AE686928A97C8F00717AA4 /* Sources */ = {
440+
isa = PBXSourcesBuildPhase;
441+
buildActionMask = 2147483647;
442+
files = (
443+
40AE687028A97C8F00717AA4 /* LiftTarget_iOSTests.swift in Sources */,
444+
);
445+
runOnlyForDeploymentPostprocessing = 0;
446+
};
447+
40AE687628A97CCB00717AA4 /* Sources */ = {
448+
isa = PBXSourcesBuildPhase;
449+
buildActionMask = 2147483647;
450+
files = (
451+
40AE687F28A97CCB00717AA4 /* LiftTarget_iOSUITestsLaunchTests.swift in Sources */,
452+
40AE687D28A97CCB00717AA4 /* LiftTarget_iOSUITests.swift in Sources */,
453+
);
454+
runOnlyForDeploymentPostprocessing = 0;
455+
};
319456
/* End PBXSourcesBuildPhase section */
320457

458+
/* Begin PBXTargetDependency section */
459+
40AE687228A97C8F00717AA4 /* PBXTargetDependency */ = {
460+
isa = PBXTargetDependency;
461+
target = 40A8F9F6287049FF000BCFF6 /* LiftTarget_iOS */;
462+
targetProxy = 40AE687128A97C8F00717AA4 /* PBXContainerItemProxy */;
463+
};
464+
40AE688128A97CCB00717AA4 /* PBXTargetDependency */ = {
465+
isa = PBXTargetDependency;
466+
target = 40A8F9F6287049FF000BCFF6 /* LiftTarget_iOS */;
467+
targetProxy = 40AE688028A97CCB00717AA4 /* PBXContainerItemProxy */;
468+
};
469+
/* End PBXTargetDependency section */
470+
321471
/* Begin PBXVariantGroup section */
322472
40A8FA00287049FF000BCFF6 /* Main.storyboard */ = {
323473
isa = PBXVariantGroup;
@@ -516,6 +666,76 @@
516666
};
517667
name = Release;
518668
};
669+
40AE687428A97C8F00717AA4 /* Debug */ = {
670+
isa = XCBuildConfiguration;
671+
buildSettings = {
672+
BUNDLE_LOADER = "$(TEST_HOST)";
673+
CODE_SIGN_STYLE = Automatic;
674+
CURRENT_PROJECT_VERSION = 1;
675+
DEVELOPMENT_TEAM = LKF6A6MC84;
676+
GENERATE_INFOPLIST_FILE = YES;
677+
MARKETING_VERSION = 1.0;
678+
PRODUCT_BUNDLE_IDENTIFIER = "com.igor2890.LiftTarget-iOSTests";
679+
PRODUCT_NAME = "$(TARGET_NAME)";
680+
SWIFT_EMIT_LOC_STRINGS = NO;
681+
SWIFT_VERSION = 5.0;
682+
TARGETED_DEVICE_FAMILY = "1,2";
683+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LiftTarget_iOS.app/LiftTarget_iOS";
684+
};
685+
name = Debug;
686+
};
687+
40AE687528A97C8F00717AA4 /* Release */ = {
688+
isa = XCBuildConfiguration;
689+
buildSettings = {
690+
BUNDLE_LOADER = "$(TEST_HOST)";
691+
CODE_SIGN_STYLE = Automatic;
692+
CURRENT_PROJECT_VERSION = 1;
693+
DEVELOPMENT_TEAM = LKF6A6MC84;
694+
GENERATE_INFOPLIST_FILE = YES;
695+
MARKETING_VERSION = 1.0;
696+
PRODUCT_BUNDLE_IDENTIFIER = "com.igor2890.LiftTarget-iOSTests";
697+
PRODUCT_NAME = "$(TARGET_NAME)";
698+
SWIFT_EMIT_LOC_STRINGS = NO;
699+
SWIFT_VERSION = 5.0;
700+
TARGETED_DEVICE_FAMILY = "1,2";
701+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LiftTarget_iOS.app/LiftTarget_iOS";
702+
};
703+
name = Release;
704+
};
705+
40AE688328A97CCB00717AA4 /* Debug */ = {
706+
isa = XCBuildConfiguration;
707+
buildSettings = {
708+
CODE_SIGN_STYLE = Automatic;
709+
CURRENT_PROJECT_VERSION = 1;
710+
DEVELOPMENT_TEAM = LKF6A6MC84;
711+
GENERATE_INFOPLIST_FILE = YES;
712+
MARKETING_VERSION = 1.0;
713+
PRODUCT_BUNDLE_IDENTIFIER = "com.igor2890.LiftTarget-iOSUITests";
714+
PRODUCT_NAME = "$(TARGET_NAME)";
715+
SWIFT_EMIT_LOC_STRINGS = NO;
716+
SWIFT_VERSION = 5.0;
717+
TARGETED_DEVICE_FAMILY = "1,2";
718+
TEST_TARGET_NAME = LiftTarget_iOS;
719+
};
720+
name = Debug;
721+
};
722+
40AE688428A97CCB00717AA4 /* Release */ = {
723+
isa = XCBuildConfiguration;
724+
buildSettings = {
725+
CODE_SIGN_STYLE = Automatic;
726+
CURRENT_PROJECT_VERSION = 1;
727+
DEVELOPMENT_TEAM = LKF6A6MC84;
728+
GENERATE_INFOPLIST_FILE = YES;
729+
MARKETING_VERSION = 1.0;
730+
PRODUCT_BUNDLE_IDENTIFIER = "com.igor2890.LiftTarget-iOSUITests";
731+
PRODUCT_NAME = "$(TARGET_NAME)";
732+
SWIFT_EMIT_LOC_STRINGS = NO;
733+
SWIFT_VERSION = 5.0;
734+
TARGETED_DEVICE_FAMILY = "1,2";
735+
TEST_TARGET_NAME = LiftTarget_iOS;
736+
};
737+
name = Release;
738+
};
519739
/* End XCBuildConfiguration section */
520740

521741
/* Begin XCConfigurationList section */
@@ -537,6 +757,24 @@
537757
defaultConfigurationIsVisible = 0;
538758
defaultConfigurationName = Release;
539759
};
760+
40AE687328A97C8F00717AA4 /* Build configuration list for PBXNativeTarget "LiftTarget_iOSTests" */ = {
761+
isa = XCConfigurationList;
762+
buildConfigurations = (
763+
40AE687428A97C8F00717AA4 /* Debug */,
764+
40AE687528A97C8F00717AA4 /* Release */,
765+
);
766+
defaultConfigurationIsVisible = 0;
767+
defaultConfigurationName = Release;
768+
};
769+
40AE688228A97CCB00717AA4 /* Build configuration list for PBXNativeTarget "LiftTarget_iOSUITests" */ = {
770+
isa = XCConfigurationList;
771+
buildConfigurations = (
772+
40AE688328A97CCB00717AA4 /* Debug */,
773+
40AE688428A97CCB00717AA4 /* Release */,
774+
);
775+
defaultConfigurationIsVisible = 0;
776+
defaultConfigurationName = Release;
777+
};
540778
/* End XCConfigurationList section */
541779
};
542780
rootObject = 40A8F9EF287049FF000BCFF6 /* Project object */;

LiftTarget_iOS.xcodeproj/xcshareddata/xcschemes/LiftTarget_iOS.xcscheme

+20
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,26 @@
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "40AE686C28A97C8F00717AA4"
36+
BuildableName = "LiftTarget_iOSTests.xctest"
37+
BlueprintName = "LiftTarget_iOSTests"
38+
ReferencedContainer = "container:LiftTarget_iOS.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
<TestableReference
42+
skipped = "NO">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "40AE687928A97CCB00717AA4"
46+
BuildableName = "LiftTarget_iOSUITests.xctest"
47+
BlueprintName = "LiftTarget_iOSUITests"
48+
ReferencedContainer = "container:LiftTarget_iOS.xcodeproj">
49+
</BuildableReference>
50+
</TestableReference>
3151
</Testables>
3252
</TestAction>
3353
<LaunchAction
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// LiftTarget_iOSTests.swift
3+
// LiftTarget_iOSTests
4+
//
5+
// Created by Игорь Андрианов on 14.08.2022.
6+
//
7+
8+
import XCTest
9+
10+
class LiftTarget_iOSTests: XCTestCase {
11+
12+
override func setUpWithError() throws {
13+
// Put setup code here. This method is called before the invocation of each test method in the class.
14+
}
15+
16+
override func tearDownWithError() throws {
17+
// Put teardown code here. This method is called after the invocation of each test method in the class.
18+
}
19+
20+
func testExample() throws {
21+
// This is an example of a functional test case.
22+
// Use XCTAssert and related functions to verify your tests produce the correct results.
23+
// Any test you write for XCTest can be annotated as throws and async.
24+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
25+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
26+
}
27+
28+
func testPerformanceExample() throws {
29+
// This is an example of a performance test case.
30+
measure {
31+
// Put the code you want to measure the time of here.
32+
}
33+
}
34+
35+
}

0 commit comments

Comments
 (0)