Skip to content

Commit 27c798e

Browse files
authored
Re-enable iOS E2E Testing pipelines (#2643)
1 parent 13d62af commit 27c798e

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

azure-pipelines.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -218,26 +218,26 @@ extends:
218218
shardNum: 2
219219
shardIndex: 1
220220

221-
# - job: E2ETestIOS
222-
# displayName: 'E2E Tests - IOS - Plan A'
223-
# pool:
224-
# name: Azure Pipelines
225-
# image: macos-latest-internal
226-
# os: macOS
227-
# steps:
228-
# - template: tools/yaml-templates/ios-test.yml@self
229-
# parameters:
230-
# iOSAppHostingSdkGitPath: IOSAppHostingSdk
231-
# testPlan: iosE2ETestPlanA
232-
233-
# - job: E2ETestIOS2
234-
# displayName: 'E2E Tests - IOS - Plan B'
235-
# pool:
236-
# name: Azure Pipelines
237-
# image: macos-latest-internal
238-
# os: macOS
239-
# steps:
240-
# - template: tools/yaml-templates/ios-test.yml@self
241-
# parameters:
242-
# iOSAppHostingSdkGitPath: IOSAppHostingSdk
243-
# testPlan: iosE2ETestPlanB
221+
- job: E2ETestIOS
222+
displayName: 'E2E Tests - IOS - Plan A'
223+
pool:
224+
name: Azure Pipelines
225+
image: macos-latest-internal
226+
os: macOS
227+
steps:
228+
- template: tools/yaml-templates/ios-test.yml@self
229+
parameters:
230+
iOSAppHostingSdkGitPath: IOSAppHostingSdk
231+
testPlan: iosE2ETestPlanA
232+
233+
- job: E2ETestIOS2
234+
displayName: 'E2E Tests - IOS - Plan B'
235+
pool:
236+
name: Azure Pipelines
237+
image: macos-latest-internal
238+
os: macOS
239+
steps:
240+
- template: tools/yaml-templates/ios-test.yml@self
241+
parameters:
242+
iOSAppHostingSdkGitPath: IOSAppHostingSdk
243+
testPlan: iosE2ETestPlanB

tools/yaml-templates/ios-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ steps:
114114
displayName: 'iOS UI/E2E Tests'
115115
inputs:
116116
targetType: inline
117-
script: "/usr/bin/xcodebuild -configuration Release -workspace /Users/runner/work/1/iOSHost/$(IOSSdkWorkspace).xcworkspace -scheme $(IOSSdkSchemeForTest) -testPlan ${{ parameters.testPlan }} -sdk iphonesimulator -parallel-testing-enabled YES -parallel-testing-worker-count 2 -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=17.5' -screenshot-enabled=\"YES\" -quiet -resultBundlePath TestResults test 2>/dev/null\nif [[ $? == 0 ]]; then echo \"E2E Test passes successfully\"; exit 0; else echo \"E2E Test failed\"; exit 1; fi;"
117+
script: "/usr/bin/xcodebuild -configuration Release -workspace /Users/runner/work/1/iOSHost/$(IOSSdkWorkspace).xcworkspace -scheme $(IOSSdkSchemeForTest) -testPlan ${{ parameters.testPlan }} -sdk iphonesimulator -parallel-testing-enabled YES -parallel-testing-worker-count 2 -test-iterations 3 -retry-tests-on-failure -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=17.5' -screenshot-enabled=\"YES\" -quiet -resultBundlePath TestResults test 2>/dev/null\nif [[ $? == 0 ]]; then echo \"E2E Test passes successfully\"; exit 0; else echo \"E2E Test failed\"; exit 1; fi;"
118118
workingDirectory: '$(Agent.BuildDirectory)/iOSHost'
119119

120120
- task: Bash@3

0 commit comments

Comments
 (0)