pester / AzureDevOpsExtension

MIT License
27 stars 14 forks source link

Pester Test Runner

This is the repository for the Pester Test Runner Azure Pipelines extension.

To make use of this extension you need to install it from the Azure DevOps Marketplace: https://marketplace.visualstudio.com/items?itemName=Pester.PesterRunner

From here you can make use of the task in your pipelines to run Pester tests. The task currently has the following inputs:

In YAML pipelines this looks like:

- task: Pester@9
  inputs:
    # Required Arguments
    scriptFolder: '$(System.DefaultWorkingDirectory)\tests'
    resultsFile: '$(System.DefaultWorkingDirectory)\Test-Pester.XML'

    #Optional Arguments
    CodeCoverageOutputFile: '$(System.DefaultWorkingDirectory)\CC-Pester.XML'
    tag: a,b,c
    excludeTag: d,e,f
    usePSCore: False
    additionalModulePath: 'c:\test\modules'
    CodeCoverageFolder: '$(System.DefaultWorkingDirectory)\src'
    run32Bit: False
    PesterVersion: 'LatestVersion|OtherVersion'
    preferredPesterVersion: '4.10.1'
    ScriptBlock: '{Setup-ImportantThings}'