Родитель
1c75b1d14e
Коммит
2bbef362a5
|
@ -330,4 +330,7 @@ ASALocalRun/
|
|||
.mfractor/
|
||||
|
||||
# External deps
|
||||
External/
|
||||
External/
|
||||
|
||||
# Test results
|
||||
test/results.xml
|
|
@ -34,6 +34,11 @@ jobs:
|
|||
inputs:
|
||||
filePath: 'tools/run-tests.ps1'
|
||||
pwsh: true
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: "NUnit"
|
||||
testResultsFiles: "test/results.xml"
|
||||
|
||||
- job: WindowsPowershell
|
||||
pool:
|
||||
|
@ -49,8 +54,13 @@ jobs:
|
|||
inputs:
|
||||
filePath: 'tools/run-tests.ps1'
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: "NUnit"
|
||||
testResultsFiles: "test/results.xml"
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: TestManifest
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: 'Test-ModuleManifest -Path ./FeatureFlags.psd1'
|
||||
script: 'Test-ModuleManifest -Path ./FeatureFlags.psd1'
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче