Skip to content

Commit

Permalink
Update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju committed Feb 10, 2021
1 parent a59deb9 commit 7f7d166
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ stages:
displayName: 'Run Unit Test'
inputs:
filePath: './build.ps1'
arguments: "-Tasks test -PesterScript 'tests/Unit'"
arguments: "-Tasks test -PesterPath 'tests/Unit'"
pwsh: true
- task: PublishTestResults@2
displayName: 'Publish Test Results'
Expand Down Expand Up @@ -143,7 +143,7 @@ stages:
script: 'winrm quickconfig -quiet'
pwsh: false
- powershell: |
./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterScript @(
./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterPath @(
# Run the integration tests in a specific group order.
# Group 1
'tests/Integration/DSC_SqlSetup.Integration.Tests.ps1'
Expand Down Expand Up @@ -212,7 +212,7 @@ stages:
script: 'winrm quickconfig -quiet'
pwsh: false
- powershell: |
./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterScript @(
./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterPath @(
# Run the integration tests in a specific group order.
# Group 1
'tests/Integration/DSC_SqlSetup.Integration.Tests.ps1'
Expand Down Expand Up @@ -280,7 +280,7 @@ stages:
script: 'winrm quickconfig -quiet'
pwsh: false
- powershell: |
./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterScript @(
./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterPath @(
# Run the integration tests in a specific group order.
# Group 1
'tests/Integration/DSC_SqlSetup.Integration.Tests.ps1'
Expand Down
2 changes: 2 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ param
$RequiredModulesDirectory = $(Join-Path 'output' 'RequiredModules'),

[Parameter()]
# This alias is to prepare for the rename of this parameter to PesterPath when Pester 4 support is removed
[Alias('PesterPath')]
[object[]]
$PesterScript,

Expand Down

0 comments on commit 7f7d166

Please sign in to comment.