Upgrade Process-PSModule to Pester 6.1 - #519
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Marius Storhaug (MariusStorhaug)
marked this pull request as ready for review
August 15, 2026 15:55
Marius Storhaug (MariusStorhaug)
requested a review
from a team
as a code owner
August 15, 2026 15:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented in Process-PSModule
[6.1.0,7.0.0)range in reusable framework test runs.Version/Prereleaseselect Pester, whileGitHubVersion/GitHubPrereleaseselect the GitHub module. Pester prerelease remains at the action default..github/actions/Test-PSModule/src/tests, because they are context-dependent framework suites executed against the compiled module or source tree. Discovery remains$PSScriptRoot/tests/$settings.Run.ShuffleRun.ShuffleSeedRun.ParallelRun.ParallelThrottleLimitDebug.ShowStartMarkersPester 6.1 runtime audit
A local Pester 6.1 probe generated a passing test result and coverage report, and the Get-PesterCodeCoverage action processed that JSON successfully. The coverage result shape remains compatible:
CoveragePercent,CoveragePercentTarget,CommandsMissed,CommandsExecuted,FilesAnalyzed, and all count properties are present and consumed correctly.The Pester result still exposes
Containers; each container retainsData,Blocks, and aggregate result/count properties. The existing container files therefore remain compatible with the compiled-module/source-tree execution model.Contract findings and required upstream follow-up
The current
PSModule/Invoke-Pesterv5.1.0 action does not expose these Pester configuration properties as action inputs, so this repository deliberately does not add incompatible passthrough mappings:Run_ShuffleRun_ShuffleSeedRun_ParallelRun_ParallelThrottleLimitDebug_ShowStartMarkersThe coordinated
PSModule/Invoke-Pesterfollow-up must add each input toaction.yml, forward eachPSMODULE_INVOKE_PESTER_INPUT_*environment variable, map them into the generatedPesterConfiguration, and publish a version/tag that Process-PSModule can pin. Process-PSModule can then expose the corresponding reusable-action inputs and pass them through.Test and fixture boundaries confirmed
Test-ModuleLocal.ymlimports the artifact in its prescript before invoking Pester.src/data/Config.psd1andsrc/data/Settings.psd1) are not implicitly loaded and are currently unused. Any future PSD1 dataset test must callImport-PowerShellDataFileexplicitly or load it from supported setup.Expose-TestDatapasses only explicit caller-provided fixtures as environment variables to setup, teardown, and tests.Invoke-ScriptAnalyzerjob and artifact path; it is not folded into Pester execution.Validation
git diff --checkpassed.Commits:
337533c,ad2961e,8c3366f,0423d6a