PowerShell/.vsts-ci/templates/verify-xunit.yml
2020-01-28 12:39:51 -08:00

34 lines
857 B
YAML

parameters:
parentJobs: []
pool: 'vs2017-win2016'
jobName: 'xunit_verify'
jobs:
- job: verify_xunit
displayName: Verify xUnit Results
pool:
vmImage: ${{ parameters.pool }}
dependsOn:
${{ parameters.parentJobs }}
steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download build artifacts'
inputs:
downloadType: specific
itemPattern: |
xunit/**/*
downloadPath: '$(System.ArtifactsDirectory)'
- powershell: |
dir "$(System.ArtifactsDirectory)\*" -Recurse
displayName: 'Capture artifacts directory'
continueOnError: true
- powershell: |
Import-Module .\tools\ci.psm1
$xUnitTestResultsFile = "$(System.ArtifactsDirectory)\xunit\xUnitTestResults.xml"
Test-XUnitTestResults -TestResultsFile $xUnitTestResultsFile
displayName: Test
condition: succeeded()