Skip to content

Fix parallel run durations + data passing, Should-Invoke mock error name, and ForEach null suggestion#2796

Closed
nohwnd wants to merge 2 commits into
mainfrom
nohwnd-fix-recent-6-0-0-issues
Closed

Fix parallel run durations + data passing, Should-Invoke mock error name, and ForEach null suggestion#2796
nohwnd wants to merge 2 commits into
mainfrom
nohwnd-fix-recent-6-0-0-issues

Conversation

@nohwnd

@nohwnd nohwnd commented Jun 29, 2026

Copy link
Copy Markdown
Member

Four recent 6.0.0 reports:

Added parallel duration + data tests and tightened the mock/ForEach tests. The 3 unrelated SkipRemainingOnFailure test failures are pre-existing on main.

…h null suggestion

Parallel runs summed container durations, so the totals overstated the
wall-clock time. Use RunEnd - RunStart for the run duration and leave the
per-phase totals blank in parallel mode. The not-found mock assertion now
says Should-Invoke instead of Should -Invoke, and the empty/null -ForEach
error points at both -AllowNullOrEmptyForEach and Run.FailOnNullOrEmptyForEach.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@nohwnd nohwnd added this to the 6.0.0 milestone Jun 29, 2026
Run.Parallel only sent each file path to its worker, so New-PesterContainer
-Path ... -Data @{ ... } lost its data and parametrized files failed discovery
on missing mandatory parameters. Rebuild a data-bearing container in the worker
when Data is present, otherwise run the path directly as before.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@nohwnd nohwnd changed the title Fix parallel run durations, Should-Invoke mock error name, and ForEach null suggestion Fix parallel run durations + data passing, Should-Invoke mock error name, and ForEach null suggestion Jun 29, 2026
@nohwnd

nohwnd commented Jun 29, 2026

Copy link
Copy Markdown
Member Author

@nohwnd nohwnd closed this Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant