Migrates to Pester5+ tests #59
@ -202,7 +202,6 @@ function Invoke-UnitTest {
|
|||||||
$TestResults = Invoke-Pester -Configuration $PesterConf -ErrorAction 'Stop'
|
$TestResults = Invoke-Pester -Configuration $PesterConf -ErrorAction 'Stop'
|
||||||
|
|
||||||
if ($TestResults.FailedCount -gt 0) {
|
if ($TestResults.FailedCount -gt 0) {
|
||||||
Write-FailureStateFile -StepName 'Pester'
|
|
||||||
throw ('{0} tests failed!' -f $TestResults.FailedCount)
|
throw ('{0} tests failed!' -f $TestResults.FailedCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user