Skip to content

Commit 1f15246

Browse files
committed
Adding test bundle
1 parent 09d673d commit 1f15246

File tree

3 files changed

+181
-0
lines changed

3 files changed

+181
-0
lines changed

TeadsSampleApp.xcodeproj/project.pbxproj

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
E9A3AC5A2795BB0D00F124D6 /* AdOpportunityTrackerCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9A3AC592795BB0D00F124D6 /* AdOpportunityTrackerCollectionViewCell.swift */; };
5050
E9A6F4BD26B7188D005C5F78 /* NativeAdCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9A6F4BC26B7188D005C5F78 /* NativeAdCollectionViewCell.swift */; };
5151
F71C452127918A88000C696F /* TeadsSampleAppUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F71C452027918A88000C696F /* TeadsSampleAppUITests.swift */; };
52+
F7535FA227D0FF250025E723 /* TeadsSampleAppTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7535FA127D0FF250025E723 /* TeadsSampleAppTests.swift */; };
5253
F7651FE326A07A58004DAFD9 /* bootstrap.js in Resources */ = {isa = PBXBuildFile; fileRef = F7651FE126A07A58004DAFD9 /* bootstrap.js */; };
5354
F7651FE426A07A58004DAFD9 /* TeadsWebViewHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7651FE226A07A58004DAFD9 /* TeadsWebViewHelper.swift */; };
5455
/* End PBXBuildFile section */
@@ -61,6 +62,13 @@
6162
remoteGlobalIDString = B5555A311F7CDF80007406D4;
6263
remoteInfo = TeadsSampleApp;
6364
};
65+
F7535FA327D0FF250025E723 /* PBXContainerItemProxy */ = {
66+
isa = PBXContainerItemProxy;
67+
containerPortal = B5555A2A1F7CDF80007406D4 /* Project object */;
68+
proxyType = 1;
69+
remoteGlobalIDString = B5555A311F7CDF80007406D4;
70+
remoteInfo = TeadsSampleApp;
71+
};
6472
/* End PBXContainerItemProxy section */
6573

6674
/* Begin PBXFileReference section */
@@ -111,6 +119,8 @@
111119
E9A6F4BC26B7188D005C5F78 /* NativeAdCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeAdCollectionViewCell.swift; sourceTree = "<group>"; };
112120
F71C451E27918A88000C696F /* TeadsSampleAppUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TeadsSampleAppUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
113121
F71C452027918A88000C696F /* TeadsSampleAppUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeadsSampleAppUITests.swift; sourceTree = "<group>"; };
122+
F7535F9F27D0FF250025E723 /* TeadsSampleAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TeadsSampleAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
123+
F7535FA127D0FF250025E723 /* TeadsSampleAppTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeadsSampleAppTests.swift; sourceTree = "<group>"; };
114124
F7651FE126A07A58004DAFD9 /* bootstrap.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = bootstrap.js; sourceTree = "<group>"; };
115125
F7651FE226A07A58004DAFD9 /* TeadsWebViewHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TeadsWebViewHelper.swift; sourceTree = "<group>"; };
116126
/* End PBXFileReference section */
@@ -131,6 +141,13 @@
131141
);
132142
runOnlyForDeploymentPostprocessing = 0;
133143
};
144+
F7535F9C27D0FF250025E723 /* Frameworks */ = {
145+
isa = PBXFrameworksBuildPhase;
146+
buildActionMask = 2147483647;
147+
files = (
148+
);
149+
runOnlyForDeploymentPostprocessing = 0;
150+
};
134151
/* End PBXFrameworksBuildPhase section */
135152

136153
/* Begin PBXGroup section */
@@ -324,6 +341,7 @@
324341
children = (
325342
B5555A341F7CDF80007406D4 /* TeadsSampleApp */,
326343
F71C451F27918A88000C696F /* TeadsSampleAppUITests */,
344+
F7535FA027D0FF250025E723 /* TeadsSampleAppTests */,
327345
B5555A331F7CDF80007406D4 /* Products */,
328346
9C4C2A8CC3AEB01218414AF6 /* Pods */,
329347
DE0116B31068BD02E3224B25 /* Frameworks */,
@@ -335,6 +353,7 @@
335353
children = (
336354
B5555A321F7CDF80007406D4 /* TeadsSampleApp.app */,
337355
F71C451E27918A88000C696F /* TeadsSampleAppUITests.xctest */,
356+
F7535F9F27D0FF250025E723 /* TeadsSampleAppTests.xctest */,
338357
);
339358
name = Products;
340359
sourceTree = "<group>";
@@ -492,6 +511,14 @@
492511
path = TeadsSampleAppUITests;
493512
sourceTree = "<group>";
494513
};
514+
F7535FA027D0FF250025E723 /* TeadsSampleAppTests */ = {
515+
isa = PBXGroup;
516+
children = (
517+
F7535FA127D0FF250025E723 /* TeadsSampleAppTests.swift */,
518+
);
519+
path = TeadsSampleAppTests;
520+
sourceTree = "<group>";
521+
};
495522
F7651FDF26A07A58004DAFD9 /* WebViewHelper */ = {
496523
isa = PBXGroup;
497524
children = (
@@ -550,6 +577,24 @@
550577
productReference = F71C451E27918A88000C696F /* TeadsSampleAppUITests.xctest */;
551578
productType = "com.apple.product-type.bundle.ui-testing";
552579
};
580+
F7535F9E27D0FF250025E723 /* TeadsSampleAppTests */ = {
581+
isa = PBXNativeTarget;
582+
buildConfigurationList = F7535FA727D0FF250025E723 /* Build configuration list for PBXNativeTarget "TeadsSampleAppTests" */;
583+
buildPhases = (
584+
F7535F9B27D0FF250025E723 /* Sources */,
585+
F7535F9C27D0FF250025E723 /* Frameworks */,
586+
F7535F9D27D0FF250025E723 /* Resources */,
587+
);
588+
buildRules = (
589+
);
590+
dependencies = (
591+
F7535FA427D0FF250025E723 /* PBXTargetDependency */,
592+
);
593+
name = TeadsSampleAppTests;
594+
productName = TeadsSampleAppTests;
595+
productReference = F7535F9F27D0FF250025E723 /* TeadsSampleAppTests.xctest */;
596+
productType = "com.apple.product-type.bundle.unit-test";
597+
};
553598
/* End PBXNativeTarget section */
554599

555600
/* Begin PBXProject section */
@@ -570,6 +615,11 @@
570615
ProvisioningStyle = Automatic;
571616
TestTargetID = B5555A311F7CDF80007406D4;
572617
};
618+
F7535F9E27D0FF250025E723 = {
619+
CreatedOnToolsVersion = 13.2.1;
620+
ProvisioningStyle = Automatic;
621+
TestTargetID = B5555A311F7CDF80007406D4;
622+
};
573623
};
574624
};
575625
buildConfigurationList = B5555A2D1F7CDF80007406D4 /* Build configuration list for PBXProject "TeadsSampleApp" */;
@@ -587,6 +637,7 @@
587637
targets = (
588638
B5555A311F7CDF80007406D4 /* TeadsSampleApp */,
589639
F71C451D27918A88000C696F /* TeadsSampleAppUITests */,
640+
F7535F9E27D0FF250025E723 /* TeadsSampleAppTests */,
590641
);
591642
};
592643
/* End PBXProject section */
@@ -613,6 +664,13 @@
613664
);
614665
runOnlyForDeploymentPostprocessing = 0;
615666
};
667+
F7535F9D27D0FF250025E723 /* Resources */ = {
668+
isa = PBXResourcesBuildPhase;
669+
buildActionMask = 2147483647;
670+
files = (
671+
);
672+
runOnlyForDeploymentPostprocessing = 0;
673+
};
616674
/* End PBXResourcesBuildPhase section */
617675

618676
/* Begin PBXShellScriptBuildPhase section */
@@ -738,6 +796,14 @@
738796
);
739797
runOnlyForDeploymentPostprocessing = 0;
740798
};
799+
F7535F9B27D0FF250025E723 /* Sources */ = {
800+
isa = PBXSourcesBuildPhase;
801+
buildActionMask = 2147483647;
802+
files = (
803+
F7535FA227D0FF250025E723 /* TeadsSampleAppTests.swift in Sources */,
804+
);
805+
runOnlyForDeploymentPostprocessing = 0;
806+
};
741807
/* End PBXSourcesBuildPhase section */
742808

743809
/* Begin PBXTargetDependency section */
@@ -746,6 +812,11 @@
746812
target = B5555A311F7CDF80007406D4 /* TeadsSampleApp */;
747813
targetProxy = F71C452427918A88000C696F /* PBXContainerItemProxy */;
748814
};
815+
F7535FA427D0FF250025E723 /* PBXTargetDependency */ = {
816+
isa = PBXTargetDependency;
817+
target = B5555A311F7CDF80007406D4 /* TeadsSampleApp */;
818+
targetProxy = F7535FA327D0FF250025E723 /* PBXContainerItemProxy */;
819+
};
749820
/* End PBXTargetDependency section */
750821

751822
/* Begin PBXVariantGroup section */
@@ -1124,6 +1195,61 @@
11241195
};
11251196
name = Release;
11261197
};
1198+
F7535FA527D0FF250025E723 /* Debug */ = {
1199+
isa = XCBuildConfiguration;
1200+
buildSettings = {
1201+
BUNDLE_LOADER = "$(TEST_HOST)";
1202+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
1203+
CLANG_ENABLE_OBJC_WEAK = YES;
1204+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
1205+
CODE_SIGN_IDENTITY = "Apple Development";
1206+
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
1207+
CODE_SIGN_STYLE = Automatic;
1208+
CURRENT_PROJECT_VERSION = 1;
1209+
DEVELOPMENT_TEAM = "";
1210+
GENERATE_INFOPLIST_FILE = YES;
1211+
IPHONEOS_DEPLOYMENT_TARGET = 15.2;
1212+
MARKETING_VERSION = 1.0;
1213+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
1214+
MTL_FAST_MATH = YES;
1215+
PRODUCT_BUNDLE_IDENTIFIER = tv.Teads.TeadsSampleAppTests;
1216+
PRODUCT_NAME = "$(TARGET_NAME)";
1217+
PROVISIONING_PROFILE_SPECIFIER = "";
1218+
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
1219+
SWIFT_EMIT_LOC_STRINGS = NO;
1220+
SWIFT_VERSION = 5.0;
1221+
TARGETED_DEVICE_FAMILY = "1,2";
1222+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TeadsSampleApp.app/TeadsSampleApp";
1223+
};
1224+
name = Debug;
1225+
};
1226+
F7535FA627D0FF250025E723 /* Release */ = {
1227+
isa = XCBuildConfiguration;
1228+
buildSettings = {
1229+
BUNDLE_LOADER = "$(TEST_HOST)";
1230+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
1231+
CLANG_ENABLE_OBJC_WEAK = YES;
1232+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
1233+
CODE_SIGN_IDENTITY = "Apple Development";
1234+
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
1235+
CODE_SIGN_STYLE = Automatic;
1236+
CURRENT_PROJECT_VERSION = 1;
1237+
DEVELOPMENT_TEAM = "";
1238+
GENERATE_INFOPLIST_FILE = YES;
1239+
IPHONEOS_DEPLOYMENT_TARGET = 15.2;
1240+
MARKETING_VERSION = 1.0;
1241+
MTL_FAST_MATH = YES;
1242+
PRODUCT_BUNDLE_IDENTIFIER = tv.Teads.TeadsSampleAppTests;
1243+
PRODUCT_NAME = "$(TARGET_NAME)";
1244+
PROVISIONING_PROFILE_SPECIFIER = "";
1245+
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
1246+
SWIFT_EMIT_LOC_STRINGS = NO;
1247+
SWIFT_VERSION = 5.0;
1248+
TARGETED_DEVICE_FAMILY = "1,2";
1249+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TeadsSampleApp.app/TeadsSampleApp";
1250+
};
1251+
name = Release;
1252+
};
11271253
/* End XCBuildConfiguration section */
11281254

11291255
/* Begin XCConfigurationList section */
@@ -1154,6 +1280,15 @@
11541280
defaultConfigurationIsVisible = 0;
11551281
defaultConfigurationName = Release;
11561282
};
1283+
F7535FA727D0FF250025E723 /* Build configuration list for PBXNativeTarget "TeadsSampleAppTests" */ = {
1284+
isa = XCConfigurationList;
1285+
buildConfigurations = (
1286+
F7535FA527D0FF250025E723 /* Debug */,
1287+
F7535FA627D0FF250025E723 /* Release */,
1288+
);
1289+
defaultConfigurationIsVisible = 0;
1290+
defaultConfigurationName = Release;
1291+
};
11571292
/* End XCConfigurationList section */
11581293
};
11591294
rootObject = B5555A2A1F7CDF80007406D4 /* Project object */;

TeadsSampleApp.xcodeproj/xcshareddata/xcschemes/TeadsSampleApp.xcscheme

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@
4747
ReferencedContainer = "container:TeadsSampleApp.xcodeproj">
4848
</BuildableReference>
4949
</TestableReference>
50+
<TestableReference
51+
skipped = "NO">
52+
<BuildableReference
53+
BuildableIdentifier = "primary"
54+
BlueprintIdentifier = "F7535F9E27D0FF250025E723"
55+
BuildableName = "TeadsSampleAppTests.xctest"
56+
BlueprintName = "TeadsSampleAppTests"
57+
ReferencedContainer = "container:TeadsSampleApp.xcodeproj">
58+
</BuildableReference>
59+
</TestableReference>
5060
</Testables>
5161
</TestAction>
5262
<LaunchAction
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//
2+
// TeadsSampleAppTests.swift
3+
// TeadsSampleAppTests
4+
//
5+
// Created by Antoine Barrault on 03/03/2022.
6+
// Copyright © 2022 Teads. All rights reserved.
7+
//
8+
9+
import XCTest
10+
11+
class TeadsSampleAppTests: XCTestCase {
12+
13+
override func setUpWithError() throws {
14+
// Put setup code here. This method is called before the invocation of each test method in the class.
15+
}
16+
17+
override func tearDownWithError() throws {
18+
// Put teardown code here. This method is called after the invocation of each test method in the class.
19+
}
20+
21+
func testExample() throws {
22+
// This is an example of a functional test case.
23+
// Use XCTAssert and related functions to verify your tests produce the correct results.
24+
// Any test you write for XCTest can be annotated as throws and async.
25+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
26+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
27+
}
28+
29+
func testPerformanceExample() throws {
30+
// This is an example of a performance test case.
31+
measure {
32+
// Put the code you want to measure the time of here.
33+
}
34+
}
35+
36+
}

0 commit comments

Comments
 (0)