February 2019
Intermediate to advanced
626 pages
15h 51m
English
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.
Read now
Unlock full access