add debug mode as param + use params in phpunit.sh

This commit is contained in:
odain
2019-11-29 16:46:59 +01:00
parent 1b168501af
commit 50dddaaa9b
2 changed files with 15 additions and 3 deletions

View File

@@ -3,6 +3,17 @@ set -x
cd test
export DEBUG_UNIT_TEST="0"
export DEBUG_UNIT_TEST=0
RUN_NONREG_TESTS=0
php vendor/bin/phpunit --log-junit ../var/test/phpunit-log.junit.xml --teamcity
if [ $# -ge 1 ]
then
export DEBUG_UNIT_TEST=$1
fi
if [ $# -ge 2 ]
then
RUN_NONREG_TESTS=$2
fi
#php vendor/bin/phpunit --log-junit ../var/test/phpunit-log.junit.xml --teamcity