diff --git a/Tests/Rules/AvoidUsingDoubleQuotesForConstantString.tests.ps1 b/Tests/Rules/AvoidUsingDoubleQuotesForConstantString.tests.ps1 index 558c67441..fcfab21bc 100644 --- a/Tests/Rules/AvoidUsingDoubleQuotesForConstantString.tests.ps1 +++ b/Tests/Rules/AvoidUsingDoubleQuotesForConstantString.tests.ps1 @@ -1,8 +1,10 @@ -$settings = @{ - IncludeRules = @('PSAvoidUsingDoubleQuotesForConstantString') - Rules = @{ - PSAvoidUsingDoubleQuotesForConstantString = @{ - Enable = $true +BeforeAll { + $settings = @{ + IncludeRules = @('PSAvoidUsingDoubleQuotesForConstantString') + Rules = @{ + PSAvoidUsingDoubleQuotesForConstantString = @{ + Enable = $true + } } } } diff --git a/tools/appveyor.psm1 b/tools/appveyor.psm1 index 6b60ad326..c38877643 100644 --- a/tools/appveyor.psm1 +++ b/tools/appveyor.psm1 @@ -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