-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpester-v9.yml
31 lines (27 loc) · 1001 Bytes
/
pester-v9.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
parameters:
- name: pscore
type: boolean
default: false
steps:
- task: Pester.PesterRunner-DEV.Pester-Task.Pester@9
displayName: 'Pester Test Runner'
inputs:
scriptFolder: './Extension/tests'
resultsFile: '$(System.DefaultWorkingDirectory)/Test-Pester.XML'
CodeCoverageOutputFile: '$(System.DefaultWorkingDirectory)/CC-Pester.XML'
usePSCore: ${{ parameters.pscore }}
CodeCoverageFolder: './Extension/tests'
PesterVersion: OtherVersion
preferredPesterVersion: 4.10.1
- task: PublishTestResults@2
displayName: 'Publish Test Results Test-Pester.XML'
condition: 'always()'
inputs:
testRunTitle: '$(agent.os)-v9'
testResultsFormat: NUnit
testResultsFiles: '$(System.DefaultWorkingDirectory)/Test-Pester.XML'
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage'
condition: 'always()'
inputs:
summaryFileLocation: '$(System.DefaultWorkingDirectory)/CC-Pester.XML'