I'm running tests PHPUnit from command line, but can't work out how to make it show the code coverage results in the terminal.
There are various command line options here in their documentation but they all involve outputting the results to a file in one of various formats.
Am I missing an obvious solution? Or would I need to write a batch file that executes:
File is not mandatory for --coverage-text
option, you can run just
./phpunit.phar --coverage-text
and get results in the terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With