-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
pester-v10.yml
31 lines (27 loc) · 1002 Bytes
/
pester-v10.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@10
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: 5.0.2
- task: PublishTestResults@2
displayName: 'Publish Test Results Test-Pester.XML'
condition: 'always()'
inputs:
testRunTitle: '$(agent.os)-v10'
testResultsFormat: NUnit
testResultsFiles: '$(System.DefaultWorkingDirectory)/Test-Pester.XML'
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage'
condition: 'always()'
inputs:
summaryFileLocation: '$(System.DefaultWorkingDirectory)/CC-Pester.XML'