File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,15 @@ jobs:
46
46
vmImage : windows-2019
47
47
steps :
48
48
- template : templates/ci-general.yml
49
+ - template : templates/coverage.yml
49
50
50
51
- job : PS7_macOS
51
52
displayName : PowerShell 7 - macOS 10.15
52
53
pool :
53
54
vmImage : macOS-10.15
54
55
steps :
55
56
- template : templates/ci-general.yml
57
+ - template : templates/coverage.yml
56
58
57
59
- job : PS7_Ubuntu
58
60
displayName : PowerShell 7 - Ubuntu 20.04
Original file line number Diff line number Diff line change
1
+ # NOTE: This requires the build to have been run first.
2
+ steps :
3
+ - pwsh : npm run coverage
4
+ workingDirectory : $(Build.SourcesDirectory)/vscode-powershell
5
+ displayName : Analyzing code coverage
6
+ - task : PublishCodeCoverageResults@1
7
+ displayName : Publish code coverage results
8
+ inputs :
9
+ codeCoverageTool : Cobertura
10
+ summaryFileLocation : $(Build.SourcesDirectory)/vscode-powershell/coverage/cobertura-coverage.xml
11
+ failIfCoverageEmpty : true
You can’t perform that action at this time.
0 commit comments