From f3f0886e75e36a2d76d9528109bfa5c9fd8bef35 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Wed, 10 Feb 2016 13:16:22 -0800 Subject: [PATCH] Make appveyor fail if it cannot find test results --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index fb5139794d..3f48ecefc7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -25,6 +25,8 @@ build_script: test_script: - ps: | + # fail tests execution, if any PS error detected + $ErrorActionPreference = 'Stop' # CoreCLR $testResultsFile = ".\TestsResults.xml" .\bin\powershell.exe --noprofile -c "Invoke-Pester test/powershell -OutputFormat NUnitXml -OutputFile $testResultsFile"