Resources/Template.tests.ps1
# Pester testing. https://github.com/pester/Pester/wiki $myScript = "$PSScriptRoot\$fileName" Describe 'Unit Tests' { Context 'Basic Validation' { it 'Should run successfully' { if ($myScript -like '*ps1') { $run = invoke-expression $myScript } else { import-module $myScript $runCommand = test-$name } $runCommand | Should Match "Reporting from" } } } |