mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Fix some tests.
This commit is contained in:
10
test.sh
10
test.sh
@@ -11,8 +11,9 @@ resetestflag=''
|
||||
testflag=''
|
||||
coverageflag=''
|
||||
acceptancetestclass=''
|
||||
verbalflag=''
|
||||
|
||||
while getopts 'crta:' flag; do
|
||||
while getopts 'vcrta:' flag; do
|
||||
case "${flag}" in
|
||||
r)
|
||||
resetestflag='true'
|
||||
@@ -23,6 +24,9 @@ while getopts 'crta:' flag; do
|
||||
c)
|
||||
coverageflag='true'
|
||||
;;
|
||||
v)
|
||||
verbalflag=' -v'
|
||||
;;
|
||||
a)
|
||||
acceptancetestclass=./tests/acceptance/$OPTARG
|
||||
echo "Will only run acceptance test $OPTARG"
|
||||
@@ -82,10 +86,10 @@ else
|
||||
if [[ $coverageflag == "" ]]
|
||||
then
|
||||
echo "Must run PHPUnit without coverage"
|
||||
phpunit $acceptancetestclass
|
||||
phpunit --stop-on-error $verbalflag $acceptancetestclass
|
||||
else
|
||||
echo "Must run PHPUnit with coverage"
|
||||
phpunit --configuration phpunit.coverage.xml $acceptancetestclass
|
||||
phpunit --stop-on-error $verbalflag --configuration phpunit.coverage.xml $acceptancetestclass
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user