Skip to content

Fix Run.Parallel help, code coverage does not force a sequential run - #2974

Merged
nohwnd merged 1 commit into
mainfrom
nohwnd-parallel-coverage-help
Aug 12, 2026
Merged

Fix Run.Parallel help, code coverage does not force a sequential run#2974
nohwnd merged 1 commit into
mainfrom
nohwnd-parallel-coverage-help

Conversation

@nohwnd

@nohwnd nohwnd commented Aug 12, 2026

Copy link
Copy Markdown
Member

The Run.Parallel description still listed CodeCoverage among the reasons a parallel run falls back to sequential:

Falls back to a sequential run on Windows PowerShell 5.1, when non-file containers (ScriptBlock) are used, when CodeCoverage is enabled, or when Run.SkipRemainingOnFailure is set to 'Run'.

That has not been true since workers started measuring their own file with breakpoints and the parent started merging the hits into a single report. Main.ps1 sets $collectCoverageInParallel = $coverageEnabled and never falls back for coverage, and the docs site already documents it correctly.

Also adds the fallback that was missing, when every file opts out with #pester:no-parallel.

about_PesterConfiguration.help.txt is regenerated by build.ps1 -Clean, so it is in the same commit. test.ps1 -File tst/Help.Tests.ps1 -SkipPTests passes.

Docs side: pester/docs#445 regenerates the configuration table with the same text.

🤖

The description still listed CodeCoverage among the reasons a parallel run
falls back to sequential. That stopped being true when workers started
measuring their own file with breakpoints and the parent started merging
the hits into one report.

Also adds the fallback that was missing, when every file opts out with
#pester:no-parallel, which the docs site already lists.

about_PesterConfiguration.help.txt is regenerated by build.ps1 -Clean.

🤖
@nohwnd
nohwnd merged commit cb007b2 into main Aug 12, 2026
3 of 12 checks passed
@nohwnd
nohwnd deleted the nohwnd-parallel-coverage-help branch August 12, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant