Rob Sewell shows off the Because parameter in Pester 4.2.0:
This release adds the Because parameter to the all assertions. This means that you can add a reason why the test has failed. As JAKUB JAREŠ writes here
-
Reasons force you think more
-
Reasons document your intent
-
Reasons make your TestCases clearer
Click through for examples galore. 4.2.1 should have a -Parent macro which inputs -Because “I said so”.