Update Pester invocation with configuration options

This commit is contained in:
Haritha
2025-11-03 11:29:12 -06:00
committed by GitHub
parent db2ae0a36e
commit e60ec8ae98

View File

@@ -168,7 +168,11 @@ jobs:
Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck
Import-Module Pester
$toolName = (Get-Culture).TextInfo.ToTitleCase("${{ inputs.tool-name }}")
Invoke-Pester -Script ./$toolName.Tests.ps1 -EnableExit
Invoke-Pester -Configuration @{
Run = @{ Path = "./$toolName.Tests.ps1" }
Should = @{ ErrorAction = 'Continue' }
Output = @{ EnableExit = $true }
}
working-directory: ./tests
publish_release: