PowerTip: Connect Pester to Automated System
Summary: Learn how to incorporate Pester into an automated system.
How do I incorporate Pester into an automated system?
Use one of the features in Pester that are built for this purpose: NUnit XML export, -PassThru switch, or the
–EnableExit switch in conjunction with powershell.exe’s exit code, for example:
$testResults = Invoke-Pester -PassThru -OutputFormat NUnitXml -OutputFile .\TestResults.xml