Created
November 28, 2024 17:31
Revisions
-
jesseleite created this gist
Nov 28, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #!/bin/bash if [ -z "$1" ]; then echo 'Please specify test file!'; exit 1; fi failures=0 attempts=0 while true; do cmd="./vendor/bin/phpunit --colors $1" $cmd status=$? [ $status -ne 0 ] && ((failures=failures+1)) ((attempts=attempts+1)) printf "\n" echo "Number of failures/attempts: $failures/$attempts" printf "\n" done