Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Improved test coverage script.
James Cole21c24fd7f037
diff --git a/test.sh b/test.shindex d59f1b463a..01a8be87ad 100755--- a/test.sh+++ b/test.sh@@ -10,9 +10,11 @@ TESTINGENV=./.env.testingresetTestFlag=''testflag=''coverageflag=''+featureflag=''featuretestclass=''verbalflag=''testsuite=''+configfile='phpunit.xml';while getopts 'vcrtf:s:' flag; docase "${flag}" in@@ -24,12 +26,14 @@ while getopts 'vcrtf:s:' flag; do;;c)coverageflag='true'+ configfile='phpunit.coverage.xml';;;v)verbalflag=' -v --debug'echo "Will be verbal about it";;f)+ featureflag='true'featuretestclass=./tests/Feature/$OPTARGecho "Will only run Feature test $OPTARG";;@@ -41,6 +45,11 @@ while getopts 'vcrtf:s:' flag; doesacdone+if [[ $coverageflag == "true" && $featureflag == "true" ]]+then+ echo "Use config file specific.xml"+ configfile='phpunit.coverage.specific.xml'+fi# backup current config (if it exists):@@ -99,12 +108,13 @@ elseif [[ $coverageflag == "" ]]thenecho "Must run PHPUnit without coverage:"- echo "phpunit --stop-on-error $verbalflag $featuretestclass $testsuite"- phpunit --stop-on-error $verbalflag $featuretestclass $testsuite++ echo "phpunit $verbalflag --configuration $configfile $featuretestclass $testsuite"+ phpunit $verbalflag --configuration $configfile $featuretestclass $testsuiteelseecho "Must run PHPUnit with coverage"- echo "phpunit --stop-on-error $verbalflag --configuration phpunit.coverage.xml $featuretestclass $testsuite"- phpunit --stop-on-error $verbalflag --configuration phpunit.coverage.xml $featuretestclass $testsuite+ echo "phpunit $verbalflag --configuration $configfile $featuretestclass $testsuite"+ phpunit $verbalflag --configuration $configfile $featuretestclass $testsuitefifi