Родитель
1c75b1d14e
Коммит
2bbef362a5
|
@ -331,3 +331,6 @@ ASALocalRun/
|
|||
|
||||
# External deps
|
||||
External/
|
||||
|
||||
# Test results
|
||||
test/results.xml
|
|
@ -35,6 +35,11 @@ jobs:
|
|||
filePath: 'tools/run-tests.ps1'
|
||||
pwsh: true
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: "NUnit"
|
||||
testResultsFiles: "test/results.xml"
|
||||
|
||||
- job: WindowsPowershell
|
||||
pool:
|
||||
vmImage: 'vs2017-win2016'
|
||||
|
@ -49,6 +54,11 @@ jobs:
|
|||
inputs:
|
||||
filePath: 'tools/run-tests.ps1'
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: "NUnit"
|
||||
testResultsFiles: "test/results.xml"
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: TestManifest
|
||||
inputs:
|
||||
|
|
|
@ -7,7 +7,7 @@ if ($pester.Count -eq 0) {
|
|||
Write-Host "Cannot find the Pester module. Installing it."
|
||||
Install-Module Pester -Force -Scope CurrentUser
|
||||
}
|
||||
$FailedTests = Invoke-Pester $testDir -EnableExit
|
||||
$FailedTests = Invoke-Pester $testDir -EnableExit -OutputFile "test/results.xml" -OutputFormat "NUnitXML" -CodeCoverage "$parentDir/FeatureFlags.psm1"
|
||||
if ($FailedTests -gt 0) {
|
||||
Write-Error "Error: $FailedTests Pester tests failed."
|
||||
exit $FailedTests
|
||||
|
|
Загрузка…
Ссылка в новой задаче