Skip to content

Instantly share code, notes, and snippets.

@yukozh
Created March 4, 2020 01:57
Show Gist options
  • Save yukozh/d257c0d81ae5ac20925773e1abd216f7 to your computer and use it in GitHub Desktop.
Save yukozh/d257c0d81ae5ac20925773e1abd216f7 to your computer and use it in GitHub Desktop.
Install-Pester
# Install Pester
Write-Host 'Cleaning...'
Remove-Item './pester.zip' -Force
Remove-Item -Path './pester' -Recurse -Force
Write-Host 'Downloading Pester...'
Invoke-WebRequest -Uri 'https://github.com/pester/Pester/archive/4.10.1.zip' -OutFile 'pester.zip'
Write-Host 'Expanding Pester...'
Expand-Archive -Path './pester.zip' -DestinationPath './pester'
Write-Host 'Loading Pester Modules...'
Import-Module -Name 'pester' -Verbose
Write-Host 'Pester Loaded.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment