2015-12-29 15:50:01 +00:00
|
|
|
# phpunit
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> PHPUnit command-line test runner.
|
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
|
|
|
|
|
|
|
`phpunit --coverage-html {{directory}}`
|