Renamed a parameter

This commit is contained in:
James Cole 2017-03-04 06:54:05 +01:00
parent 8101f910f0
commit 33c20c8dc4
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

18
test.sh
View File

@ -10,11 +10,11 @@ TESTINGENV=./.env.testing
resetTestFlag=''
testflag=''
coverageflag=''
acceptancetestclass=''
featuretestclass=''
verbalflag=''
testsuite=''
while getopts 'vcrta:s:' flag; do
while getopts 'vcrtf:s:' flag; do
case "${flag}" in
r)
resetTestFlag='true'
@ -29,9 +29,9 @@ while getopts 'vcrta:s:' flag; do
verbalflag=' -v --debug'
echo "Will be verbal about it"
;;
a)
acceptancetestclass=./tests/acceptance/$OPTARG
echo "Will only run acceptance test $OPTARG"
f)
featuretestclass=./tests/Feature/$OPTARG
echo "Will only run Feature test $OPTARG"
;;
s)
testsuite="--testsuite $OPTARG"
@ -99,12 +99,12 @@ else
if [[ $coverageflag == "" ]]
then
echo "Must run PHPUnit without coverage:"
echo "phpunit --stop-on-error $verbalflag $acceptancetestclass $testsuite"
phpunit --stop-on-error $verbalflag $acceptancetestclass $testsuite
echo "phpunit --stop-on-error $verbalflag $featuretestclass $testsuite"
phpunit --stop-on-error $verbalflag $featuretestclass $testsuite
else
echo "Must run PHPUnit with coverage"
echo "phpunit --stop-on-error $verbalflag --configuration phpunit.coverage.xml $acceptancetestclass $testsuite"
phpunit --stop-on-error $verbalflag --configuration phpunit.coverage.xml $acceptancetestclass $testsuite
echo "phpunit --stop-on-error $verbalflag --configuration phpunit.coverage.xml $featuretestclass $testsuite"
phpunit --stop-on-error $verbalflag --configuration phpunit.coverage.xml $featuretestclass $testsuite
fi
fi