Skip to content

Commit d1a025b

Browse files
Merge pull request #541 from Iterable/tapash/mob-4268-fix-e2e
[MOB-4268] - Fix integration tests
2 parents 51d886e + 8fb6cc4 commit d1a025b

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.github/workflows/e2e.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11-
12-
- uses: maxim-lobanov/setup-xcode@v1.1
11+
12+
- uses: maxim-lobanov/setup-xcode@v1.3.0
1313
with:
14-
xcode-version: 12.0
14+
xcode-version: 13.0
1515

1616
- name: Build and test
1717
env:

swift-sdk.xcodeproj/project.pbxproj

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,13 @@
251251
/* End PBXBuildFile section */
252252

253253
/* Begin PBXContainerItemProxy section */
254+
5B38881D27FAE6DB00482BE7 /* PBXContainerItemProxy */ = {
255+
isa = PBXContainerItemProxy;
256+
containerPortal = AC2263D620CF49B8009800EB /* Project object */;
257+
proxyType = 1;
258+
remoteGlobalIDString = ACF560D220E443BF000AAC23;
259+
remoteInfo = "host-app";
260+
};
254261
AC28480D24AA44C600C1FC7F /* PBXContainerItemProxy */ = {
255262
isa = PBXContainerItemProxy;
256263
containerPortal = AC2263D620CF49B8009800EB /* Project object */;
@@ -1380,6 +1387,7 @@
13801387
);
13811388
dependencies = (
13821389
AC28480E24AA44C600C1FC7F /* PBXTargetDependency */,
1390+
5B38881E27FAE6DB00482BE7 /* PBXTargetDependency */,
13831391
);
13841392
name = "endpoint-tests";
13851393
productName = "endpoint-tests";
@@ -1572,6 +1580,7 @@
15721580
};
15731581
AC28480624AA44C600C1FC7F = {
15741582
CreatedOnToolsVersion = 11.5;
1583+
TestTargetID = ACF560D220E443BF000AAC23;
15751584
};
15761585
AC7B142A20D02CE200877BFE = {
15771586
CreatedOnToolsVersion = 9.4;
@@ -2036,6 +2045,11 @@
20362045
/* End PBXSourcesBuildPhase section */
20372046

20382047
/* Begin PBXTargetDependency section */
2048+
5B38881E27FAE6DB00482BE7 /* PBXTargetDependency */ = {
2049+
isa = PBXTargetDependency;
2050+
target = ACF560D220E443BF000AAC23 /* host-app */;
2051+
targetProxy = 5B38881D27FAE6DB00482BE7 /* PBXContainerItemProxy */;
2052+
};
20392053
AC28480E24AA44C600C1FC7F /* PBXTargetDependency */ = {
20402054
isa = PBXTargetDependency;
20412055
target = AC2263DE20CF49B8009800EB /* swift-sdk */;
@@ -2340,6 +2354,7 @@
23402354
AC28480F24AA44C600C1FC7F /* Debug */ = {
23412355
isa = XCBuildConfiguration;
23422356
buildSettings = {
2357+
BUNDLE_LOADER = "$(TEST_HOST)";
23432358
CODE_SIGN_STYLE = Automatic;
23442359
DEVELOPMENT_TEAM = BP98Z28R86;
23452360
INFOPLIST_FILE = "tests/endpoint-tests/Info.plist";
@@ -2355,12 +2370,14 @@
23552370
PRODUCT_NAME = "$(TARGET_NAME)";
23562371
SWIFT_VERSION = 5.0;
23572372
TARGETED_DEVICE_FAMILY = "1,2";
2373+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/host-app.app/host-app";
23582374
};
23592375
name = Debug;
23602376
};
23612377
AC28481024AA44C600C1FC7F /* Release */ = {
23622378
isa = XCBuildConfiguration;
23632379
buildSettings = {
2380+
BUNDLE_LOADER = "$(TEST_HOST)";
23642381
CODE_SIGN_STYLE = Automatic;
23652382
DEVELOPMENT_TEAM = BP98Z28R86;
23662383
INFOPLIST_FILE = "tests/endpoint-tests/Info.plist";
@@ -2375,6 +2392,7 @@
23752392
PRODUCT_NAME = "$(TARGET_NAME)";
23762393
SWIFT_VERSION = 5.0;
23772394
TARGETED_DEVICE_FAMILY = "1,2";
2395+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/host-app.app/host-app";
23782396
};
23792397
name = Release;
23802398
};

tests/endpoint-tests/scripts/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ sed -e "s/\(apiKey = \).*$/\1\"$api_key\"/" \
2222
xcodebuild -project swift-sdk.xcodeproj \
2323
-scheme endpoint-tests \
2424
-sdk iphonesimulator \
25-
-destination 'platform=iOS Simulator,name=iPhone 11' \
25+
-destination 'platform=iOS Simulator,name=iPhone 13' \
2626
test | xcpretty

0 commit comments

Comments
 (0)