diff --git a/composer.json b/composer.json index 138fd98..b6512f1 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,7 @@ "phpstan/phpstan": "^1.8.11", "squizlabs/php_codesniffer": "3.*", "phpmd/phpmd": "^2.11", + "oxid-esales/oxideshop-ce": "dev-b-7.1.x", "phpunit/phpunit": "^10.5", "codeception/codeception": "*", "codeception/module-asserts": "*", @@ -57,13 +58,20 @@ "@phpmd" ], - "tests-unit": "export PHPUNIT=/var/www/vendor/bin/phpunit ; if [ ! -x \"${PHPUNIT}\" ]; then export PHPUNIT=vendor/bin/phpunit ; fi ; echo \"PHPUNIT: ${PHPUNIT}\" ; XDEBUG_MODE=coverage $PHPUNIT --config=tests/ --testsuite=Unit --coverage-clover=tests/Reports/coverage_unit_module-template.xml", - "tests-integration": "export PHPUNIT=/var/www/vendor/bin/phpunit ; if [ ! -x \"${PHPUNIT}\" ]; then export PHPUNIT=vendor/bin/phpunit ; fi ; echo \"PHPUNIT: ${PHPUNIT}\" ; XDEBUG_MODE=coverage $PHPUNIT --bootstrap=/var/www/source/bootstrap.php --config=tests/ --testsuite=Integration --coverage-clover=tests/Reports/coverage_integration_module-template.xml", + "tests-unit": [ + "export PHPUNIT=/var/www/vendor/bin/phpunit ; if [ ! -x \"${PHPUNIT}\" ]; then export PHPUNIT=vendor/bin/phpunit ; fi ; XDEBUG_MODE=coverage $PHPUNIT --config=tests/ --testsuite=Unit --coverage-clover=tests/Reports/coverage_unit_module-template.xml 2>&1 | tee tests/Output/phpunit_unit.txt", + "if [ -x tests/script/check_log.sh ]; then tests/script/check_log.sh tests/Output/phpunit_unit.txt tests/script/unit_failure_pattern.txt ; fi" + ], + "tests-integration": [ + "export PHPUNIT=/var/www/vendor/bin/phpunit ; if [ ! -x \"${PHPUNIT}\" ]; then export PHPUNIT=vendor/bin/phpunit ; fi ; XDEBUG_MODE=coverage $PHPUNIT --bootstrap=/var/www/source/bootstrap.php --config=tests/ --testsuite=Integration --coverage-clover=tests/Reports/coverage_integration_module-template.xml 2>&1 | tee tests/Output/phpunit_integration.txt", + "if [ -x tests/script/check_log.sh ]; then tests/script/check_log.sh tests/Output/phpunit_integration.txt tests/script/integration_failure_pattern.txt ; fi" + ], "phpunit-coverage": "export PHPUNIT=/var/www/vendor/bin/phpunit ; if [ ! -x \"${PHPUNIT}\" ]; then export PHPUNIT=vendor/bin/phpunit ; fi ; echo \"PHPUNIT: ${PHPUNIT}\" ; XDEBUG_MODE=coverage $PHPUNIT --coverage-text --bootstrap=/var/www/source/bootstrap.php --config=tests/ --coverage-html=tests/reports/coverage", "tests-codeception": [ "Composer\\Config::disableProcessTimeout", - "export CODECEPT=/var/www/vendor/bin/codecept ; if [ ! -x \"${CODECEPT}\" ]; then export CODECEPT=vendor/bin/codecept ; fi ; echo \"Codeception: ${CODECEPT}\" ; THEME_ID=apex MODULE_IDS=oegdproptin SHOP_ROOT_PATH=/var/www $CODECEPT run Acceptance -c tests/codeception.yml --no-redirect" + "export CODECEPT=/var/www/vendor/bin/codecept ; if [ ! -x \"${CODECEPT}\" ]; then export CODECEPT=vendor/bin/codecept ; fi ; THEME_ID=apex MODULE_IDS=oegdproptin SHOP_ROOT_PATH=/var/www $CODECEPT run Acceptance -c tests/codeception.yml --no-redirect 2>&1 | tee tests/Output/codeception_Acceptance.txt", + "if [ -x tests/script/check_log.sh ]; then tests/script/check_log.sh tests/Output/codeception_Acceptance.txt tests/script/codeception_failure_pattern.txt ; fi" ] }, "config": {