mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Add test failure threshold to pester.sh
Set to 14 because of non-tty and random process failures.
This commit is contained in:
1 parent
e6a4c45485
commit
cd81479b87
1 file changed
+8
-1
@@ -1,3 +1,10 @@
|
||||
./bin/powershell -c "Invoke-Pester test/powershell/$1 -OutputFile pester-tests.xml -OutputFormat NUnitXml"
|
||||
#!/usr/bin/env bash
|
||||
|
||||
./bin/powershell -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 14 ]
|
||||
Reference in new issue
Block a user