Skip to content
Richard Fennell edited this page Nov 9, 2017 · 8 revisions

This task is available in the VSTS Marketplace

A task to install and run PowerShell Pester based tests The task takes two parameters

  • The root folder to look for test scripts with the naming convention *.tests.ps1. Defaults to $(Build.SourcesDirectory)*
  • The results file name, defaults to $(Build.SourcesDirectory)\Test-Pester.XML
  • Tag is a comma separated list of tagged tests to run
  • ExcludeTag is a comma separated list of tagged tests not to run
  • RunIn32Bit, defaults to false, if set forced PowerShell to be loaded 32bit as opposed to 64bit

The Pester task does not in itself upload the test results, it just throws and error if tests fails. It relies on the standard test results upload task.

For more details on usage see this blog post

Clone this wiki locally