Skip to content

Commit e02d393

Browse files
committed
Add ui test
1 parent ca2c09e commit e02d393

File tree

4 files changed

+204
-30
lines changed

4 files changed

+204
-30
lines changed

Example/Example.xcodeproj/project.pbxproj

+137-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,19 @@
1313
84B65C721CF39DA50089B477 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 84B65C711CF39DA50089B477 /* Assets.xcassets */; };
1414
84B65C751CF39DA50089B477 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 84B65C731CF39DA50089B477 /* LaunchScreen.storyboard */; };
1515
95ECD3F6857E94FFDFAD4B66 /* Pods_MQTTSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D14CF6C457355F7BDBFBA98B /* Pods_MQTTSwift.framework */; };
16+
C7373045229D5DD300E974EA /* UITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7373044229D5DD300E974EA /* UITests.swift */; };
1617
/* End PBXBuildFile section */
1718

19+
/* Begin PBXContainerItemProxy section */
20+
C7373047229D5DD300E974EA /* PBXContainerItemProxy */ = {
21+
isa = PBXContainerItemProxy;
22+
containerPortal = 84B65C5F1CF39DA50089B477 /* Project object */;
23+
proxyType = 1;
24+
remoteGlobalIDString = 84B65C661CF39DA50089B477;
25+
remoteInfo = Example;
26+
};
27+
/* End PBXContainerItemProxy section */
28+
1829
/* Begin PBXFileReference section */
1930
0887A182A21ED76531A9BFCE /* Pods-MQTTSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MQTTSwift.release.xcconfig"; path = "Pods/Target Support Files/Pods-MQTTSwift/Pods-MQTTSwift.release.xcconfig"; sourceTree = "<group>"; };
2031
84B65C671CF39DA50089B477 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -24,6 +35,9 @@
2435
84B65C711CF39DA50089B477 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
2536
84B65C741CF39DA50089B477 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
2637
84B65C761CF39DA50089B477 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
38+
C7373042229D5DD300E974EA /* UITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
39+
C7373044229D5DD300E974EA /* UITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UITests.swift; sourceTree = "<group>"; };
40+
C7373046229D5DD300E974EA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2741
CB7967891DB93DF9E94CD2F8 /* Pods-MQTTSwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MQTTSwift.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MQTTSwift/Pods-MQTTSwift.debug.xcconfig"; sourceTree = "<group>"; };
2842
D14CF6C457355F7BDBFBA98B /* Pods_MQTTSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MQTTSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2943
/* End PBXFileReference section */
@@ -37,6 +51,13 @@
3751
);
3852
runOnlyForDeploymentPostprocessing = 0;
3953
};
54+
C737303F229D5DD300E974EA /* Frameworks */ = {
55+
isa = PBXFrameworksBuildPhase;
56+
buildActionMask = 2147483647;
57+
files = (
58+
);
59+
runOnlyForDeploymentPostprocessing = 0;
60+
};
4061
/* End PBXFrameworksBuildPhase section */
4162

4263
/* Begin PBXGroup section */
@@ -52,6 +73,7 @@
5273
isa = PBXGroup;
5374
children = (
5475
84B65C691CF39DA50089B477 /* Example */,
76+
C7373043229D5DD300E974EA /* UITests */,
5577
84B65C681CF39DA50089B477 /* Products */,
5678
E51FC76FD75427887B43C7BE /* Pods */,
5779
4A3C326FCB8B312427A2376C /* Frameworks */,
@@ -62,6 +84,7 @@
6284
isa = PBXGroup;
6385
children = (
6486
84B65C671CF39DA50089B477 /* Example.app */,
87+
C7373042229D5DD300E974EA /* UITests.xctest */,
6588
);
6689
name = Products;
6790
sourceTree = "<group>";
@@ -79,6 +102,15 @@
79102
path = Example;
80103
sourceTree = "<group>";
81104
};
105+
C7373043229D5DD300E974EA /* UITests */ = {
106+
isa = PBXGroup;
107+
children = (
108+
C7373044229D5DD300E974EA /* UITests.swift */,
109+
C7373046229D5DD300E974EA /* Info.plist */,
110+
);
111+
path = UITests;
112+
sourceTree = "<group>";
113+
};
82114
E51FC76FD75427887B43C7BE /* Pods */ = {
83115
isa = PBXGroup;
84116
children = (
@@ -112,20 +144,43 @@
112144
productReference = 84B65C671CF39DA50089B477 /* Example.app */;
113145
productType = "com.apple.product-type.application";
114146
};
147+
C7373041229D5DD300E974EA /* UITests */ = {
148+
isa = PBXNativeTarget;
149+
buildConfigurationList = C737304B229D5DD300E974EA /* Build configuration list for PBXNativeTarget "UITests" */;
150+
buildPhases = (
151+
C737303E229D5DD300E974EA /* Sources */,
152+
C737303F229D5DD300E974EA /* Frameworks */,
153+
C7373040229D5DD300E974EA /* Resources */,
154+
);
155+
buildRules = (
156+
);
157+
dependencies = (
158+
C7373048229D5DD300E974EA /* PBXTargetDependency */,
159+
);
160+
name = UITests;
161+
productName = UITests;
162+
productReference = C7373042229D5DD300E974EA /* UITests.xctest */;
163+
productType = "com.apple.product-type.bundle.ui-testing";
164+
};
115165
/* End PBXNativeTarget section */
116166

117167
/* Begin PBXProject section */
118168
84B65C5F1CF39DA50089B477 /* Project object */ = {
119169
isa = PBXProject;
120170
attributes = {
121-
LastSwiftUpdateCheck = 0730;
171+
LastSwiftUpdateCheck = 1020;
122172
LastUpgradeCheck = 1020;
123173
ORGANIZATIONNAME = OwnTracks;
124174
TargetAttributes = {
125175
84B65C661CF39DA50089B477 = {
126176
CreatedOnToolsVersion = 7.3.1;
127177
LastSwiftMigration = 0800;
128178
};
179+
C7373041229D5DD300E974EA = {
180+
CreatedOnToolsVersion = 10.2.1;
181+
ProvisioningStyle = Automatic;
182+
TestTargetID = 84B65C661CF39DA50089B477;
183+
};
129184
};
130185
};
131186
buildConfigurationList = 84B65C621CF39DA50089B477 /* Build configuration list for PBXProject "Example" */;
@@ -143,6 +198,7 @@
143198
projectRoot = "";
144199
targets = (
145200
84B65C661CF39DA50089B477 /* Example */,
201+
C7373041229D5DD300E974EA /* UITests */,
146202
);
147203
};
148204
/* End PBXProject section */
@@ -158,6 +214,13 @@
158214
);
159215
runOnlyForDeploymentPostprocessing = 0;
160216
};
217+
C7373040229D5DD300E974EA /* Resources */ = {
218+
isa = PBXResourcesBuildPhase;
219+
buildActionMask = 2147483647;
220+
files = (
221+
);
222+
runOnlyForDeploymentPostprocessing = 0;
223+
};
161224
/* End PBXResourcesBuildPhase section */
162225

163226
/* Begin PBXShellScriptBuildPhase section */
@@ -247,8 +310,24 @@
247310
);
248311
runOnlyForDeploymentPostprocessing = 0;
249312
};
313+
C737303E229D5DD300E974EA /* Sources */ = {
314+
isa = PBXSourcesBuildPhase;
315+
buildActionMask = 2147483647;
316+
files = (
317+
C7373045229D5DD300E974EA /* UITests.swift in Sources */,
318+
);
319+
runOnlyForDeploymentPostprocessing = 0;
320+
};
250321
/* End PBXSourcesBuildPhase section */
251322

323+
/* Begin PBXTargetDependency section */
324+
C7373048229D5DD300E974EA /* PBXTargetDependency */ = {
325+
isa = PBXTargetDependency;
326+
target = 84B65C661CF39DA50089B477 /* Example */;
327+
targetProxy = C7373047229D5DD300E974EA /* PBXContainerItemProxy */;
328+
};
329+
/* End PBXTargetDependency section */
330+
252331
/* Begin PBXVariantGroup section */
253332
84B65C6E1CF39DA50089B477 /* Main.storyboard */ = {
254333
isa = PBXVariantGroup;
@@ -403,6 +482,54 @@
403482
};
404483
name = Release;
405484
};
485+
C7373049229D5DD300E974EA /* Debug */ = {
486+
isa = XCBuildConfiguration;
487+
buildSettings = {
488+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
489+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
490+
CLANG_ENABLE_OBJC_WEAK = YES;
491+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
492+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
493+
CODE_SIGN_IDENTITY = "iPhone Developer";
494+
CODE_SIGN_STYLE = Automatic;
495+
GCC_C_LANGUAGE_STANDARD = gnu11;
496+
INFOPLIST_FILE = UITests/Info.plist;
497+
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
498+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
499+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
500+
MTL_FAST_MATH = YES;
501+
PRODUCT_BUNDLE_IDENTIFIER = com.novastonemedia.UITests;
502+
PRODUCT_NAME = "$(TARGET_NAME)";
503+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
504+
SWIFT_VERSION = 5.0;
505+
TARGETED_DEVICE_FAMILY = "1,2";
506+
TEST_TARGET_NAME = Example;
507+
};
508+
name = Debug;
509+
};
510+
C737304A229D5DD300E974EA /* Release */ = {
511+
isa = XCBuildConfiguration;
512+
buildSettings = {
513+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
514+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
515+
CLANG_ENABLE_OBJC_WEAK = YES;
516+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
517+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
518+
CODE_SIGN_IDENTITY = "iPhone Developer";
519+
CODE_SIGN_STYLE = Automatic;
520+
GCC_C_LANGUAGE_STANDARD = gnu11;
521+
INFOPLIST_FILE = UITests/Info.plist;
522+
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
523+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
524+
MTL_FAST_MATH = YES;
525+
PRODUCT_BUNDLE_IDENTIFIER = com.novastonemedia.UITests;
526+
PRODUCT_NAME = "$(TARGET_NAME)";
527+
SWIFT_VERSION = 5.0;
528+
TARGETED_DEVICE_FAMILY = "1,2";
529+
TEST_TARGET_NAME = Example;
530+
};
531+
name = Release;
532+
};
406533
/* End XCBuildConfiguration section */
407534

408535
/* Begin XCConfigurationList section */
@@ -424,6 +551,15 @@
424551
defaultConfigurationIsVisible = 0;
425552
defaultConfigurationName = Release;
426553
};
554+
C737304B229D5DD300E974EA /* Build configuration list for PBXNativeTarget "UITests" */ = {
555+
isa = XCConfigurationList;
556+
buildConfigurations = (
557+
C7373049229D5DD300E974EA /* Debug */,
558+
C737304A229D5DD300E974EA /* Release */,
559+
);
560+
defaultConfigurationIsVisible = 0;
561+
defaultConfigurationName = Release;
562+
};
427563
/* End XCConfigurationList section */
428564
};
429565
rootObject = 84B65C5F1CF39DA50089B477 /* Project object */;

0 commit comments

Comments
 (0)