Tools: Add phpunit test support inside wp-env container

This commit is contained in:
Kelly Dwan 2024-08-27 13:42:26 -04:00
parent bb25e0c78b
commit 50c21b4e85
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@
"wp-content/plugins": "./plugins",
"wp-content/themes": "./themes",
"wp-content/mu-plugins/0-sandbox.php": "./.env/0-sandbox.php",
"wp-content/phpunit.xml.dist": "./phpunit.xml.dist",
"wp-cli.local.yml": "./wp-cli.local.yml"
}
}

View file

@ -18,6 +18,7 @@
"wp-env": "wp-env",
"lint:php": "composer lint ./themes/wporg-5ftf ./plugins/wporg-5ftf",
"format:php": "composer format ./themes/wporg-5ftf ./plugins/wporg-5ftf",
"test:php": "wp-env run tests-cli ./wp-content/mu-plugins/vendor/bin/phpunit -c ./wp-content/phpunit.xml.dist"
},
"workspaces": [
"themes/wporg-5ftf",