-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
56 lines (44 loc) · 1.35 KB
/
azure-pipelines.yml
File metadata and controls
56 lines (44 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: TestSuiteExecution
displayName: 'Test Suite Execution'
steps:
- task: NodeTool@0
inputs:
versionSpec: '22.17.0'
displayName: 'Install Node.js'
- script: npm install --global yarn
displayName: 'Yarn installation'
- script: yarn
displayName: 'Install dependencies'
- script: npm install -g allure-commandline --save-dev
displayName: 'Install allure commandline'
- script: chmod +x ui/driver/chromedriver-linux64/chromedriver
displayName: Make Chromedriver executable
- script: yarn testapi
displayName: 'Run API tests'
continueOnError: true
- script: yarn testui
displayName: 'Run UI tests'
continueOnError: true
- task: PublishTestResults@2
inputs:
testResultsFormat: 'XUnit'
testResultsFiles: 'api/reports/test-results.xml'
failTaskOnFailedTests: false
failTaskOnMissingResultsFile: true
testRunTitle: 'API Test Run $(System.Date)'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'XUnit'
testResultsFiles: 'ui/reports/test-results.xml'
failTaskOnFailedTests: false
failTaskOnMissingResultsFile: true
testRunTitle: 'API Test Run $(System.Date)'
- task: PublishAllureReport@1
inputs:
testResultsDir: 'allure-results'
reportName: 'Allure Test Reports'