Improve pester.sh script

- Check if PowerShell has been built before trying to use it.
This commit is contained in:
Andrew Schwartzmeyer 2016-02-19 14:58:10 -08:00
parent 3f37dfa438
commit 41a236dc5b

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
test -x bin/powershell || { echo >&2 "No bin/powershell, please run './build.sh'"; exit 1; }
./bin/powershell --noprofile -c "Invoke-Pester test/powershell/$1 -OutputFile pester-tests.xml -OutputFormat NUnitXml -EnableExit"
failed_tests=$?