PHPackages                             jrmadsen67/laravel-route-coverage-test - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. jrmadsen67/laravel-route-coverage-test

ActiveLibrary[Testing &amp; Quality](/categories/testing)

jrmadsen67/laravel-route-coverage-test
======================================

Route coverage test for Laravel.

1.1(5y ago)5630.5k↓38.9%8[1 issues](https://github.com/jrmadsen67/laravel-route-coverage-test/issues)[2 PRs](https://github.com/jrmadsen67/laravel-route-coverage-test/pulls)1MITPHPCI failing

Since May 27Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/jrmadsen67/laravel-route-coverage-test)[ Packagist](https://packagist.org/packages/jrmadsen67/laravel-route-coverage-test)[ RSS](/packages/jrmadsen67-laravel-route-coverage-test/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (1)

Laravel Route Coverage
======================

[](#laravel-route-coverage)

[![Tests](https://github.com/jrmadsen67/laravel-route-coverage-test/actions/workflows/tests.yml/badge.svg)](https://github.com/jrmadsen67/laravel-route-coverage-test/actions/workflows/tests.yml)[![Style](https://github.com/jrmadsen67/laravel-route-coverage-test/actions/workflows/style.yml/badge.svg)](https://github.com/jrmadsen67/laravel-route-coverage-test/actions/workflows/style.yml)

Tests to ensure that all routes are covered by atleast one feature test.

This is a slightly crude but effective way of checking which of your routes lack feature tests. It simply uses middleware to record all routes being hit during the feature tests, checks to ensure that matches the full route amount.

The `zRouteCoverageTest` has a funny name for a reason - PHPUnit runs tests in alphabetical order. To most easily capture all the test coverage data *first*, keep it named to run last, and in your Feature directory. Also - the output relies on routes having names to give useful data. Happy Testing!

---

Index
-----

[](#index)

- [Installation](#installation)
- [Usage](#usage)
- [Testing](#testing)
- [Changelog](#changelog)

---

Installation
============

[](#installation)

Via Composer, you can run a `composer require` which will grab the latest version of this repo...

```
composer require --dev jrmadsen67/laravel-route-coverage-test
```

...and then...

```
php artisan vendor:publish --provider="jrmadsen67\LaravelRouteCoverageTest\Providers\CoverageServiceProvider"
```

...to publish the required config and feature test file into your app. The middleware is automatically applied globally by this packages service provider.

**Note:** See version tagged `1.1` for Laravel `5.5`
- Manual version lock in for `spatie/macroable` to `^1.0` to fix composer getting confused about requirement conflicts

#### Removed

[](#removed)

- The package middleware is no longer published into the installed application and is instead held within the package and its namespace

---

### Version 1.1

[](#version-11)

Initial release. Pre-semver implementation.

#### Added

[](#added-1)

- Everything

#### Changed

[](#changed-1)

- Everything

#### Fixed

[](#fixed-1)

- Everything

#### Removed

[](#removed-1)

- Everything

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance53

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2183d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68a4d9bb38657f2c9360f5e953323185bde37c17a22e38848215a876e399e9bd?d=identicon)[jrmadsen67](/maintainers/jrmadsen67)

---

Top Contributors

[![jrmadsen67](https://avatars.githubusercontent.com/u/821958?v=4)](https://github.com/jrmadsen67 "jrmadsen67 (24 commits)")[![othyn](https://avatars.githubusercontent.com/u/7256684?v=4)](https://github.com/othyn "othyn (23 commits)")[![johnnymast](https://avatars.githubusercontent.com/u/121194?v=4)](https://github.com/johnnymast "johnnymast (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (3 commits)")[![elegasoft](https://avatars.githubusercontent.com/u/16218581?v=4)](https://github.com/elegasoft "elegasoft (1 commits)")[![ferhatbostanci](https://avatars.githubusercontent.com/u/29629554?v=4)](https://github.com/ferhatbostanci "ferhatbostanci (1 commits)")

### Embed Badge

![Health badge](/badges/jrmadsen67-laravel-route-coverage-test/health.svg)

```
[![Health](https://phpackages.com/badges/jrmadsen67-laravel-route-coverage-test/health.svg)](https://phpackages.com/packages/jrmadsen67-laravel-route-coverage-test)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
