Pester
Pester copied to clipboard
Add help for dynamic operator parameters
PR Summary
Add missing parameter help for dynamic parameters to solve this @ pester.dev

Help for dynamic parameters are not shown in console, but are published in the online docs. This PR adds helpmessage for:
Nameparameter inGet-ShouldOperator- Operator-parameters in
Should. They will now use the operator's synopsis if it's defined - Adds a hard-coded string
Depends on operator being used. See Get-ShouldOperator -Name <Operator> for help.for other dynamic parameters inShould
Related #2128 Issue won't be fixed until command reference is regenerated in docs-repo after PR is merged.
PR Checklist
- [x] PR has meaningful title
- [x] Summary describes changes
- [x] PR is ready to be merged
- If not, use the arrow next to
Create Pull Requestto mark it as a draft. PR can be markedReady for reviewwhen it's ready.
- If not, use the arrow next to
- [x] Tests are added/update (if required)
- [ ] Documentation is updated/added (if required)
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
Not sure how I broke the universe with the latest commit. TBC.. 😁
Not sure how I broke the universe with the latest commit. TBC.. 😁
Ofc. 32+ parameter sets limit again. Pester.Tests.ps1 should probably be executed isolated as it's over limit (= corrupted) even before this PR.
Maybe rewrite this Describe-block as P-tests?