Skip to content

Commit

Permalink
Separated Pester stuff out into install and run
Browse files Browse the repository at this point in the history
  • Loading branch information
JimMoyle committed May 15, 2019
1 parent 36bd639 commit f6987bf
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,25 @@ pool:

steps:
- task: PowerShell@2
displayName: 'Install and Run Pester'
displayName: 'Install Newest Pester Version'
inputs:
targetType: 'inline' # Optional. Options: filePath, inline
#filePath: # Required when targetType == FilePath
#arguments: # Optional
script:
Install-Module -Name Pester -Force -SkipPublisherCheck;
Invoke-Pester -OutputFile PesterTest.xml -OutputFormat NUnitXml -CodeCoverage write-log.ps1 -CodeCoverageOutputFile CodeCoverage.xml; # Required when targetType == Inline
script: Install-Module -Name Pester -Force -SkipPublisherCheck # Required when targetType == Inline
#errorActionPreference: 'stop' # Optional. Options: stop, continue, silentlyContinue
#failOnStderr: false # Optional
#ignoreLASTEXITCODE: false # Optional
#pwsh: false # Optional
#workingDirectory: # Optional

- task: PowerShell@2
displayName: 'Run Pester Tests'
inputs:
targetType: 'inline' # Optional. Options: filePath, inline
#filePath: # Required when targetType == FilePath
#arguments: # Optional
script: Invoke-Pester -OutputFile PesterTest.xml -OutputFormat NUnitXml -CodeCoverage write-log.ps1 -CodeCoverageOutputFile CodeCoverage.xml # Required when targetType == Inline
#errorActionPreference: 'stop' # Optional. Options: stop, continue, silentlyContinue
#failOnStderr: false # Optional
#ignoreLASTEXITCODE: false # Optional
Expand Down

0 comments on commit f6987bf

Please sign in to comment.