mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-25 05:16:13 +01:00

[BUGFIX] Use correct path for functional and unit tests (#1375)

This commit is contained in:
Eike Starkmann 2024-07-29 16:55:44 +02:00 committed by GitHub
parent 37602a09a2
commit e87c7403a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -527,7 +527,7 @@ case ${TEST_SUITE} in
;; ;;
functional) functional)
[ -z "${TEST_FILE}" ] && TEST_FILE="Tests/Functional" [ -z "${TEST_FILE}" ] && TEST_FILE="Tests/Functional"
COMMAND=".Build/bin/phpunit -c Configuration/FunctionalTests.xml --exclude-group not-${DBMS} ${EXTRA_TEST_OPTIONS} ${TEST_FILE}" COMMAND=".Build/bin/phpunit -c Build/phpunit/FunctionalTests.xml --exclude-group not-${DBMS} ${EXTRA_TEST_OPTIONS} ${TEST_FILE}"
case ${DBMS} in case ${DBMS} in
mariadb) mariadb)
echo "Using driver: ${DATABASE_DRIVER}" echo "Using driver: ${DATABASE_DRIVER}"
@ -593,12 +593,12 @@ case ${TEST_SUITE} in
;; ;;
unit) unit)
[ -z "${TEST_FILE}" ] && TEST_FILE="Tests/Unit" [ -z "${TEST_FILE}" ] && TEST_FILE="Tests/Unit"
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name unit-${SUFFIX} ${XDEBUG_MODE} -e XDEBUG_CONFIG="${XDEBUG_CONFIG}" ${IMAGE_PHP} .Build/bin/phpunit -c Configuration/UnitTests.xml ${EXTRA_TEST_OPTIONS} ${TEST_FILE} ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name unit-${SUFFIX} ${XDEBUG_MODE} -e XDEBUG_CONFIG="${XDEBUG_CONFIG}" ${IMAGE_PHP} .Build/bin/phpunit -c Build/phpunit/UnitTests.xml ${EXTRA_TEST_OPTIONS} ${TEST_FILE}
SUITE_EXIT_CODE=$? SUITE_EXIT_CODE=$?
;; ;;
unitRandom) unitRandom)
[ -z "${TEST_FILE}" ] && TEST_FILE="Tests/Unit" [ -z "${TEST_FILE}" ] && TEST_FILE="Tests/Unit"
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name unit-random-${SUFFIX} ${XDEBUG_MODE} -e XDEBUG_CONFIG="${XDEBUG_CONFIG}" ${IMAGE_PHP} .Build/bin/phpunit -c Configuration/UnitTests.xml --order-by=random ${EXTRA_TEST_OPTIONS} ${PHPUNIT_RANDOM} ${TEST_FILE} ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name unit-random-${SUFFIX} ${XDEBUG_MODE} -e XDEBUG_CONFIG="${XDEBUG_CONFIG}" ${IMAGE_PHP} .Build/bin/phpunit -c Build/phpunit/UnitTests.xml --order-by=random ${EXTRA_TEST_OPTIONS} ${PHPUNIT_RANDOM} ${TEST_FILE}
SUITE_EXIT_CODE=$? SUITE_EXIT_CODE=$?
;; ;;
update) update)