Powershell, Pester and Octopus

Notes from creating Powershell scripts with Pester Unit testing and deploying via Octopus deploy

“Invoke-Pester” will run the pester test files. The test files need to be named something.tests.ps1 to be discovered by the Pester test runner.

When passing params via Powershell in Octopus strings need to be in quotes ie.

-Parameter1 #{Octopus.Variable1} -Parameter2 #{‘Octopus.Variable2AsaStringLiteral’}

Leave a Reply

%d bloggers like this: