Bowling game example implemented with PowerShell and the Pester TDD framework.
Testing
How can we do a CI/CD for PowerShell scripts?
Path: `./github-actions'
- Testing whether we can use GitHub actions to test
- Install PowerShell via Homebrew
brew install --cask powershell
- Uninstall the built-in version of Pester using Pester Installation.
- Install Pester module locally using
Install-Module Pester -Force
. - Run the command
Import-Module Pester -PassThru
and you should see it return.
- Pester Test Explorer
- Pester Tests
From the Pester QuickStart
- Review initial test file (using Get-Planet function) in the Sample-Test directory.
- From PowerShell run
Invoke-Pester
or use VSCode Test Explorer.
- Have Pester Tests Run automatically when we change files (VSCodepoiwers)