diff --git a/.jenkins/bin/tests/phpunit.sh b/.jenkins/bin/tests/phpunit.sh index 3c327f6c9..ce3543f4b 100755 --- a/.jenkins/bin/tests/phpunit.sh +++ b/.jenkins/bin/tests/phpunit.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index a7b813418..e736d5aab 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,7 @@ pipeline { agent any parameters { + string(name: 'DEBUG_UNIT_TEST', defaultValue: '0', description: 'Debug mode?') string(name: 'RUN_NON_REG_TESTS', defaultValue: '0', description: 'Do You want to run legacy OQL regression tests?') } stages { @@ -39,7 +40,7 @@ pipeline { parallel { stage('phpunit') { steps { - sh './.jenkins/bin/tests/phpunit.sh ${params.RUN_NON_REG_TESTS}' + sh './.jenkins/bin/tests/phpunit.sh ${params.DEBUG_UNIT_TEST} ${params.RUN_NON_REG_TESTS}' } } }