There are lots of ways that we can judge other developers’ code. When we do code reviews these are not helpful methods to judge the code and we instead need to use a better method.

Code coverage is calculated as a percentage by taking the number of lines of code executed by our tests and dividing by the total number of lines of code times one hundred.

“` ./vendor/bin/phpunit –help | grep coverage –coverage-clover Generate code coverage report in Clover XML format –coverage-cobertura Generate code coverage report in Cobertura XML format –coverage-crap4j Generate code coverage report in Crap4J XML format –coverage-html Generate code coverage report in HTML format –coverage-php Export PHP_CodeCoverage object to file –coverage-text= Generate code coverage report in text format [default: standard output] –coverage-xmlGenerate code coverage report in PHPUnit XML format
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners