Skip to content

Commit

Permalink
Make CI fail if tests fail and fix failing tests by making them Peste…
Browse files Browse the repository at this point in the history
…r v5 compatible (#1553)

* Make CI fail if tests fail

* Fix failing tests by making them Pester v5 compatible

Co-authored-by: Christoph Bergmeister <[email protected]>
  • Loading branch information
bergmeister and Christoph Bergmeister authored Jul 28, 2020
1 parent 420ef88 commit 3d225ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Tests/Rules/AvoidUsingDoubleQuotesForConstantString.tests.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
$settings = @{
IncludeRules = @('PSAvoidUsingDoubleQuotesForConstantString')
Rules = @{
PSAvoidUsingDoubleQuotesForConstantString = @{
Enable = $true
BeforeAll {
$settings = @{
IncludeRules = @('PSAvoidUsingDoubleQuotesForConstantString')
Rules = @{
PSAvoidUsingDoubleQuotesForConstantString = @{
Enable = $true
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions tools/appveyor.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function Invoke-AppveyorTest {
$configuration = [PesterConfiguration]::Default
$configuration.CodeCoverage.Enabled = $false
$configuration.Output.Verbosity = 'Normal'
$configuration.Run.Exit = $true
$configuration.Run.PassThru = $true
$configuration.Run.Path = $testScripts
$configuration.TestResult.Enabled = $true
Expand Down

0 comments on commit 3d225ba

Please sign in to comment.