Summary

This chapter explored static analysis with PSScriptAnalyzer. PSScriptAnalyzer makes use of the AST to examine a script or function. The creation of custom rules for the script analyzer was briefly demonstrated.

Testing with Pester was explored in detail, including the use of the different named blocks. This included a demonstration of building tests for a function.

The next chapter will explore error handling in PowerShell, including terminating and non-terminating errors and the use of try, catch, and finally, the trap statement.

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

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