Skip to content

Commit

Permalink
Build/Test Tools: Add a readme note on passing parameters into the PH…
Browse files Browse the repository at this point in the history
…PUnit 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
  • Loading branch information
SergeyBiryukov committed Nov 24, 2023
1 parent 09a2050 commit 5ff4794
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <test name>
npm run test:php -- --group <group name or ticket number>
```

#### 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:
Expand Down

0 comments on commit 5ff4794

Please sign in to comment.