-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
79 lines (71 loc) · 2.06 KB
/
azure-pipelines.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
trigger:
- main
pool:
vmImage: 'windows-latest'
variables:
isTrue: false
steps:
- task: DotNetCoreCLI@2
displayName: "Restore"
inputs:
command: 'restore'
projects: '**\*.csproj'
- task: DotNetCoreCLI@2
displayName: "Build project"
inputs:
command: 'build'
projects: '**\*.csproj'
- task: PowerShell@2
inputs:
filePath: $(System.DefaultWorkingDirectory)\AtataPoc\Script.ps1
# - task: DotNetCoreCLI@2
# displayName: "Run tests"
# inputs:
# command: 'test'
# projects: '**\*.csproj'
# testRunTitle: 'UI Tests - Chrome'
# #arguments: '-- browser=chrome'
# arguments: '-s AtataPoc\Settings.runsettings -- TestRunParameters.Parameter(name=%22browser%22, value=%22chrome%22)'
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\*AtataPoc*.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)'
runSettingsFile: 'AtataPoc\Settings.runsettings'
overrideTestrunParameters: '-browser chrome -baseurl azure -custom prab'
runInParallel: false
uiTests: true
testRunTitle: 'UI Tests - Chrome'
rerunFailedTests: true
rerunFailedThreshold: '30'
rerunMaxAttempts: '2'
- task: VSTest@2
condition: and(succeededOrFailed(), eq(variables['isTrue'], 'true'))
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\*AtataPoc*.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)'
runSettingsFile: 'AtataPoc\Settings.runsettings'
overrideTestrunParameters: '-browser firefox'
runInParallel: false
uiTests: true
testRunTitle: 'UI Tests - Firefox'
#
# - task: VSTest@2
# inputs:
# testSelector: 'testAssemblies'
# testAssemblyVer2: |
# **\*AtataPoc*.dll
# !**\*TestAdapter.dll
# !**\obj\**
# searchFolder: '$(System.DefaultWorkingDirectory)'
# runSettingsFile: 'AtataPoc\Settings2.runsettings'
# runInParallel: false
# uiTests: true
# testRunTitle: 'UI Tests - Test'