Forrest logo
back to context overview

phpunit

List of commands for phpunit:

  • phpunit:run:file Run tests in a specific file.
    $ phpunit ${path-to-TestFile-php}
    try on your machine
    explain this command
  • phpunit:tests:run Run tests in the current directory. Note: Expects you to have a 'phpunit.xml'.
    $ phpunit
    try on your machine
    explain this command
  • phpunit:tests:run-with-coverage Run tests and generate a coverage report in HTML.
    $ phpunit --coverage-html ${path/to/directory}
    try on your machine
    explain this command
  • phpunit:tldr:c3dd7 phpunit: Run tests annotated with the given group.
    $ phpunit --group ${name}
    try on your machine
    explain this command
back to context overview