Forrest logo
back to the phpunit tool

phpunit:tests:run-with-coverage

Run tests and generate a coverage report in HTML.
$ phpunit --coverage-html ${path/to/directory}
try on your machine

This is a command to run a test suite and generate a code coverage report in HTML format using a tool called PHPUnit, which is a PHP testing framework. The "--coverage-html" option specifies that the code coverage report should be generated in HTML format, and the "${path/to/directory}" parameter specifies the directory where the report should be saved. The generated report provides detailed information about which lines of code were executed during the tests and which were not, helping developers identify areas of their code that require more testing.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the phpunit tool