mirror of
https://fast.feibisi.com/https://github.com/wp-cli/scaffold-command.git
synced 2025-10-04 17:01:28 +08:00
add phpunit.xml file
This commit is contained in:
parent
44b0cb9a1f
commit
7c9db7f437
1 changed files with 3 additions and 3 deletions
|
@ -38,12 +38,12 @@ Running the following as root in MySQL should do the trick:
|
|||
|
||||
GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost"
|
||||
IDENTIFIED BY "password1";
|
||||
|
||||
|
||||
Finally, to run the tests:
|
||||
|
||||
vendor/bin/phpunit tests
|
||||
vendor/bin/phpunit -c tests/phpunit.xml
|
||||
|
||||
Most tests install WordPress from scratch. Since this is pretty slow, you can
|
||||
use arguments to `phpunit` to only run the test that you're interested in:
|
||||
|
||||
vendor/bin/phpunit --filter test_function_you_want_to_run tests
|
||||
vendor/bin/phpunit -c tests/phpunit.xml --filter test_function_you_want_to_run tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue