PowerShell/pester.sh

11 lines
318 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2016-02-01 22:10:39 +01:00
./bin/powershell --noprofile -c "Invoke-Pester test/powershell/$1 -OutputFile pester-tests.xml -OutputFormat NUnitXml -EnableExit"
failed_tests=$?
# XML files are not executable
chmod -x pester-tests.xml
# Exit with failure if number of failed tests exceeds threshold
[ ! $failed_tests -gt 11 ]