Skip to content

Commit 26d11bd

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
Add task to test both local and remote appium server
1 parent f5f91a3 commit 26d11bd

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

azure-pipelines.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,32 @@ steps:
104104
105105
#sudo xcode-select -s /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer
106106
#xcrun simctl list
107+
108+
#appium --allow-insecure chromedriver_autodownload &
109+
#echo "Appium server started"
107110
111+
- task: Maven@3
112+
displayName: 'Run tests using appium local service'
113+
inputs:
114+
mavenPomFile: 'pom.xml'
115+
goals: 'test -DisRemote=false'
116+
publishJUnitResults: true
117+
testResultsFiles: '**/surefire-reports/TEST-*.xml'
118+
javaHomeOption: 'JDKVersion'
119+
mavenVersionOption: 'Default'
120+
mavenAuthenticateFeed: false
121+
effectivePomSkip: false
122+
sonarQubeRunAnalysis: false
123+
124+
- script: |
108125
appium --allow-insecure chromedriver_autodownload &
109126
echo "Appium server started"
110127
111128
- task: Maven@3
112-
displayName: 'Run tests'
129+
displayName: 'Run tests using manually started (remote) server'
113130
inputs:
114131
mavenPomFile: 'pom.xml'
115-
goals: 'test'
132+
goals: 'test -DisRemote=true'
116133
publishJUnitResults: true
117134
testResultsFiles: '**/surefire-reports/TEST-*.xml'
118135
javaHomeOption: 'JDKVersion'

0 commit comments

Comments
 (0)