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.
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:$IsMacOScondition once the underlying issue is fixed.engine/Formatting/ErrorView.Tests.ps1ConciseView testsFormat-List, not the Concise viewengine/Formatting/ErrorView.Tests.ps1DetailedView testsengine/Formatting/PSStyle.Tests.ps1$PSStyle has correct default for OutputRenderingOutputRenderingtoPlainTextinstead ofHostengine/Formatting/PSStyle.Tests.ps1$PSStyle.Formatting.CustomTableHeaderLabel is applied to Format-Tableengine/Basic/Encoding.Tests.ps1Using encoding utf7 results in a warning3>renders differently, exact-match failsengine/Help/HelpSystem.Tests.ps1for module : <name>Get-Helprenders Examples/Syntax/Aliases differentlyTo restore: remove
-Skip:$IsMacOSfrom each listed block and confirm it passes on the macOS runner.Follow-up to #27290.