yzen.dev/laravel-route-coverage

Laravel route coverage


Keywords
route, laravel, coverage, coverage-report, routes-coverage
License
MIT

Documentation

LaravelRouteCoverage

Packagist Version Packagist Downloads Packagist Downloads

Laravel route coverage report.

With this package you can see the percentage of test coverage of your endpoint's. Unless of course you do it through Laravel or PHPUnit tests. How it works? First, we scan the entire directory where the tests are stored, and look for all the http calls there. After that, we take all the routes of the project and combine it into a single report.

📜 Installation

The package can be installed via composer:

composer require yzen.dev/laravel-route-coverage

📜 Usage

Generate report:

php artisan route:coverage

After executing the command, the result of the report will be displayed in the console in the following form:

image

Also the html report will be saved in the public/route-coverage directory:

image