pester / Pester

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

Include more statements in code coverage #2554

Open fflaten opened 3 months ago

fflaten commented 3 months 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 3 months ago

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