mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Small fix for test script.
This commit is contained in:
4
test.sh
4
test.sh
@@ -22,6 +22,7 @@ apitestclass=''
|
|||||||
|
|
||||||
verbalflag=''
|
verbalflag=''
|
||||||
testsuite=''
|
testsuite=''
|
||||||
|
suiteflag=''
|
||||||
configfile='phpunit.xml';
|
configfile='phpunit.xml';
|
||||||
|
|
||||||
while getopts 'vcrtf:u:s:a:' flag; do
|
while getopts 'vcrtf:u:s:a:' flag; do
|
||||||
@@ -56,6 +57,7 @@ while getopts 'vcrtf:u:s:a:' flag; do
|
|||||||
echo "Will only run Api test $OPTARG"
|
echo "Will only run Api test $OPTARG"
|
||||||
;;
|
;;
|
||||||
s)
|
s)
|
||||||
|
suiteflag='true'
|
||||||
testsuite="--testsuite $OPTARG"
|
testsuite="--testsuite $OPTARG"
|
||||||
echo "Will only run test suite '$OPTARG'"
|
echo "Will only run test suite '$OPTARG'"
|
||||||
;;
|
;;
|
||||||
@@ -63,7 +65,7 @@ while getopts 'vcrtf:u:s:a:' flag; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ $coverageflag == "true" && ($featureflag == "true" || $unitflag == "true" || $apiflag == "true") ]]
|
if [[ $coverageflag == "true" && ($suiteflag == "true" || $featureflag == "true" || $unitflag == "true" || $apiflag == "true") ]]
|
||||||
then
|
then
|
||||||
echo "Use config file specific.xml"
|
echo "Use config file specific.xml"
|
||||||
configfile='phpunit.coverage.specific.xml'
|
configfile='phpunit.coverage.specific.xml'
|
||||||
|
Reference in New Issue
Block a user