Skip to content

Restore 6 macOS-only test skips from the Pester 5 migration (#27290) #27642

Description

@nohwnd

The Pester 5 migration (#27290) skips 6 tests on the macOS CI runner only, via -Skip:$IsMacOS. They run and pass on Windows and Linux. The differences are in the macOS runner environment / product rendering, not in Pester 5 behavior — the same assertions execute and pass on the other two platforms. Each skip is trivially restorable by removing the -Skip:$IsMacOS condition once the underlying issue is fixed.

Test file Skipped block Reason on macOS runner
engine/Formatting/ErrorView.Tests.ps1 ConciseView tests ErrorRecord renders as raw Format-List, not the Concise view
engine/Formatting/ErrorView.Tests.ps1 DetailedView tests same formatter-database difference as ConciseView
engine/Formatting/PSStyle.Tests.ps1 $PSStyle has correct default for OutputRendering non-TTY runner defaults OutputRendering to PlainText instead of Host
engine/Formatting/PSStyle.Tests.ps1 $PSStyle.Formatting.CustomTableHeaderLabel is applied to Format-Table table-header ANSI sequences not applied
engine/Basic/Encoding.Tests.ps1 Using encoding utf7 results in a warning warning captured via 3> renders differently, exact-match fails
engine/Help/HelpSystem.Tests.ps1 for module : <name> Get-Help renders Examples/Syntax/Aliases differently

To restore: remove -Skip:$IsMacOS from each listed block and confirm it passes on the macOS runner.

Follow-up to #27290.

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