Describe

The Describe element serves as a grouping for individual tests for a specific cmdlet or functionality. In module development, use the Describe element for each cmdlet you have written. This element contains different contexts and test cases. If you declare variables or mocks in this scope, they can be used in the nested context—and it—blocks.

Additionally, you can assign tags to your elements in order to skip certain tests entirely or report on this. All mocks, drives, and variables declared inside a Describe block will cease to exist when the Describe block exits.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset