pester / Pester

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

Include more statements in code coverage #2554

Open fflaten opened 1 month ago

fflaten commented 1 month ago

PR Summary

Extends code coverage to include break, continue, exit and throw statements. return is not included due to inconsistent behavior (though return 123 is already covered as a command expression)

Adds sort after Group-Object to save future headaches with inconsistent report/output order in Windows PowerShell vs PowerShell 6.1 which sorts by default.

Fix #1465

PR Checklist

fflaten commented 1 month ago

Draft PR due to merge conflict with #2553 and #2298. Need to merge one, fix next + repeat due to hardcoded reports.