July 2018
Beginner
552 pages
13h 18m
English
Our module template also includes basic Pester tests. Pester is a unit testing framework that existed prior to the release of Windows PowerShell 5 and has since been integrated, albeit in an outdated version. Between the shipped version 3 and release 4, there are differences in the syntax, among other changes. See the following code sample regarding upgrading Pester to the most recent version:
# Update Pester to the current version to make use of the improvementsGet-Module -List Pester # Built-in: 3.4.0# Update PowerShellGet firstif (-not (Get-Command Install-Module).Parameters.ContainsKey('SkipPublisherCheck')){ Update-Module -Name PowerShellGet -Force}# After updating PowerShellGet, make sure to close PowerShell and start a new process ...Read now
Unlock full access