Skip to content

Commit 1c39574

Browse files
added bitrise config
1 parent 1992cf4 commit 1c39574

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

runner/ios/smoke_run_bitrise.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
invoke test --env='staging' --lang='en' --app='ios' --device='bitrise'
2+
invoke slack --env='staging' --lang='en' --slack='off' --app='ios'

src/helpers/appiumdriver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ def ios(self):
7171
udid=f'{UDID}', useNewWDA=True,
7272
app=f'{os.popen("pwd").read().rstrip()}/data/apps/iOS-RealDevice-NativeDemoApp-0.2.1.ipa',
7373
automationName='XCUITest')
74+
elif self.device == 'bitrise':
75+
return dict(platformName='iOS', platformVersion='13.0', deviceName='iPhone-11',
76+
udid='E04A6F53-4C3B-4810-B210-DD2015D0D064', useNewWDA=True,
77+
app=f'{os.popen("pwd").read().rstrip()}/data/apps/iOS-Simulator-NativeDemoApp-0.2.1.app', automationName='XCUITest')
7478

7579
def tearDown(self):
7680
Driver.screenshot_on_failure(self)

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def test(c, env='staging', lang='en', app='android', device='emulator'):
1010
Enable and modify this to add local storage
1111
"""
1212
# os.system("adb push $(pwd)/data/<your_app_prefs_file>.xml /data/data/<packageName>/shared_prefs")
13-
c.run(f'python3 -m pytest src/spec/{app}/login_test.py --app={app} --device={device}')
13+
c.run(f'python3 -m pytest src/spec/{app}/*.py --app={app} --device={device}')
1414

1515
@task
1616
def slack(c, env='staging', country='AE', slack='on', app='android'):

0 commit comments

Comments
 (0)