Skip to content

Commit

Permalink
Locate phpunit/codecept in composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
joernott committed Sep 10, 2024
1 parent 041b8ad commit 7129599
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,13 @@
"@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"],
"phpunit-coverage": "XDEBUG_MODE=coverage PHPUNIT=$(find ../../../ -name phpunit) $PHPUNIT --coverage-text --bootstrap=/var/www/source/bootstrap.php --config=tests/ --coverage-html=tests/reports/coverage",
"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",
"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 vendor/bin/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 ; echo \"Codeception: ${CODECEPT}\" ; THEME_ID=apex MODULE_IDS=oegdproptin SHOP_ROOT_PATH=/var/www $CODECEPT vendor/bin/codecept run Acceptance -c tests/codeception.yml --no-redirect"
]
},
"config": {
Expand Down

0 comments on commit 7129599

Please sign in to comment.