December 15th, 2015

PowerTip: Connect Pester to Automated System

Doctor Scripto
Scripter

Summary: Learn how to incorporate Pester into an automated system.

Hey, Scripting Guy! Question How do I incorporate Pester into an automated system?

Hey, Scripting Guy! Answer 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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.