2015-12-29 15:50:01 +00:00
|
|
|
# phpunit
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> PHPUnit command-line test runner.
|
2019-05-29 14:53:50 +01:00
|
|
|
> More information: <https://phpunit.de>.
|
2015-12-29 15:50:01 +00:00
|
|
|
|
2017-05-12 10:29:18 +01:00
|
|
|
- Run tests in the current directory. Note: Expects you to have a 'phpunit.xml':
|
2015-12-29 15:50:01 +00:00
|
|
|
|
|
|
|
`phpunit`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Run tests in a specific file:
|
2015-12-29 15:50:01 +00:00
|
|
|
|
|
|
|
`phpunit {{path/to/TestFile.php}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Run tests annotated with the given group:
|
2015-12-29 15:50:01 +00:00
|
|
|
|
|
|
|
`phpunit --group {{name}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Run tests and generate a coverage report in HTML:
|
2015-12-29 15:50:01 +00:00
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`phpunit --coverage-html {{path/to/directory}}`
|