Skip to content

Commit 1ddff24

Browse files
authored
Publish functional test report (appium#394)
* Move functional tests to template * Add publish_test_result * Fix typo
1 parent a3129c1 commit 1ddff24

File tree

3 files changed

+37
-18
lines changed

3 files changed

+37
-18
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,4 @@
33
# Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more:
44
# https://docs.microsoft.com/azure/devops/pipelines/languages/xcode
55
jobs:
6-
- job: func_test_ios1
7-
pool:
8-
vmImage: 'macOS-10.14'
9-
steps:
10-
- template: ./ci-jobs/functional/run_appium.yml
11-
- script: |
12-
cd test/functional/ios
13-
py.test find_*.py remote_fs_tests.py safari_tests.py
14-
displayName: Run functional tests
15-
- job: func_test_ios2
16-
pool:
17-
vmImage: 'macOS-10.14'
18-
steps:
19-
- template: ./ci-jobs/functional/run_appium.yml
20-
- script: |
21-
cd test/functional/ios
22-
py.test applications_tests.py hw_actions_tests.py keyboard_tests.py screen_record_tests.py webdriver_tests.py
23-
displayName: Run functional tests
6+
- template: ./ci-jobs/functional_test.yml
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
steps:
2+
- task: PublishTestResults@2
3+
condition: succeededOrFailed()
4+
inputs:
5+
testResultsFiles: '**/test-*.xml'
6+
testRunTitle: ${{ parameters.title }}
7+
- task: PublishCodeCoverageResults@1
8+
inputs:
9+
codeCoverageTool: Cobertura
10+
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
11+
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'

ci-jobs/functional_test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
parameters:
2+
vmImage: 'macOS-10.14'
3+
pytestOpt: '--doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html'
4+
5+
jobs:
6+
- job: func_test_ios1
7+
pool:
8+
vmImage: ${{ parameters.vmImage }}
9+
steps:
10+
- template: ./functional/run_appium.yml
11+
- script: |
12+
cd test/functional/ios
13+
py.test find_*.py remote_fs_tests.py safari_tests.py ${{ parameters.pytestOpt }}
14+
displayName: Run functional tests
15+
- template: ./functional/publish_test_result.yml
16+
- job: func_test_ios2
17+
pool:
18+
vmImage: ${{ parameters.vmImage }}
19+
steps:
20+
- template: ./functional/run_appium.yml
21+
- script: |
22+
cd test/functional/ios
23+
py.test applications_tests.py hw_actions_tests.py keyboard_tests.py screen_record_tests.py webdriver_tests.py ${{ parameters.pytestOpt }}
24+
displayName: Run functional tests
25+
- template: ./functional/publish_test_result.yml

0 commit comments

Comments
 (0)