Skip to content

Commit

Permalink
Add script for running phpunit tests with xdebug support
Browse files Browse the repository at this point in the history
  • Loading branch information
delawski committed Jan 12, 2022
1 parent 4d26d36 commit 2beedcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
"test:js:help": "wp-scripts test-unit-js --help",
"test:js:watch": "npm run test:js -- --watch",
"test:php": "wp-env run phpunit 'WORDPRESS_TABLE_PREFIX=wptests_ /var/www/html/wp-content/plugins/amp/vendor/bin/phpunit -c /var/www/html/wp-content/plugins/amp/phpunit.xml.dist $npm_config_args'",
"test:php:xdebug": "wp-env run tests-wordpress 'env WORDPRESS_TABLE_PREFIX=wptests_ WP_PHPUNIT__TESTS_CONFIG=/var/www/html/phpunit-wp-config.php /var/www/html/wp-content/plugins/amp/vendor/bin/phpunit -c /var/www/html/wp-content/plugins/amp/phpunit.xml.dist $npm_config_args'",
"test:php:help": "npm run test:php --args='--help'",
"update-ecosystem-files": "node ./bin/update-extension-files.js",
"wp-env": "wp-env"
Expand Down

0 comments on commit 2beedcb

Please sign in to comment.