Noting a common problem we've seen in the wild: Pester 5 build/CI scripts that gate only on .FailedCount, ignoring FailedBlocksCount (failed BeforeAll/AfterAll) and FailedContainersCount (files that fail to discover/load). A failing BeforeAll or an unloadable test file then passes the build green.
Fixing across a number of community repos via PRs. A few Microsoft-owned repos have the same issue but need SSO to contribute, so tracking them here to fix later:
- microsoft/PSRule
- microsoft/edge-ai
- microsoft/winappCli
- microsoftgraph/msgraph-sdk-powershell
Noting a common problem we've seen in the wild: Pester 5 build/CI scripts that gate only on
.FailedCount, ignoringFailedBlocksCount(failedBeforeAll/AfterAll) andFailedContainersCount(files that fail to discover/load). A failingBeforeAllor an unloadable test file then passes the build green.Fixing across a number of community repos via PRs. A few Microsoft-owned repos have the same issue but need SSO to contribute, so tracking them here to fix later: