From 5ff4794ef195479930dbc244440a92d456fab835 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 24 Nov 2023 14:07:00 +0000 Subject: [PATCH] Build/Test Tools: Add a readme note on passing parameters into the PHPUnit tests. Follow-up to [45745], [47743]. Props pbearne, costdev. Fixes #59624. git-svn-id: https://develop.svn.wordpress.org/trunk@57134 602fd350-edb4-49c9-b593-d223f7449a82 --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e49cd13af3a8b..8e7411241f839 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,13 @@ npm run test:php npm run test:e2e ``` +You can pass extra parameters into the PHP tests by adding `--` and then the [command-line options](https://docs.phpunit.de/en/10.4/textui.html#command-line-options): + +``` +npm run test:php -- --filter +npm run test:php -- --group +``` + #### To restart the development environment You may want to restart the environment if you've made changes to the configuration in the `docker-compose.yml` or `.env` files. Restart the environment with: