pester / Pester

Pester is the ubiquitous test and mock framework for PowerShell.
https://pester.dev/
Other
3.07k stars 469 forks source link

Export Should-Invoke* and Should-HaveParameter #2465

Open nohwnd opened 3 months ago

nohwnd commented 3 months ago

Checklist

Summary of the feature request

Export existing assertions in the same format as Should-Be, to have complete set of assertions using the new format.

How should it work?

No response

fflaten commented 1 month ago

See relevant comment about positional parameters: https://github.com/pester/Pester/issues/2527#issuecomment-2209549984

johlju commented 1 month ago

Will this issue also handle/track Should -InvokeVerifiable?

fflaten commented 1 month ago

Should be. I'd suggest a Should-Invoke -Verifiable parameter set to reduce bloat and be consistent with Mock -Verifiable