Skip to content

Commit f25d9a6

Browse files
committed
Add code coverage and test results to AZP
1 parent 07406ab commit f25d9a6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build/azure-pipelines.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,19 @@ steps:
211211
minimumExpectedTests: 0
212212
failOnMinTestsNotRunFail: false
213213
failIfCoverageEmpty: false
214+
resultsFolder: '$(Agent.TempDirectory)\TestResults'
215+
216+
- task: PublishTestResults@2
217+
inputs:
218+
testResultsFormat: 'VSTest'
219+
testResultsFiles: '**/*.TRX'
220+
searchFolder: '$(Agent.TempDirectory)\TestResults'
221+
222+
- task: PublishCodeCoverageResults@2
223+
inputs:
224+
summaryFileLocation: '$(Agent.TempDirectory)\TestResults\**\coverage.cobertura.xml'
225+
pathToSources: '$(System.DefaultWorkingDirectory)'
226+
failIfCoverageEmpty: false
214227

215228
- task: PowerShell@2
216229
displayName: 'Detect packages'

0 commit comments

Comments
 (0)