Skip to content

Build scripts commonly gate only on FailedCount (ignores failed blocks/containers) #2833

Description

@nohwnd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions