PHPackages                             capell-app/pest-plugin-blade-coverage - 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. capell-app/pest-plugin-blade-coverage

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

capell-app/pest-plugin-blade-coverage
=====================================

Pest plugin for ratcheted Laravel Blade view coverage checks.

v0.1.2(1mo ago)1154↑1000%MITPHPPHP ^8.3CI passing

Since Jun 1Pushed 1w agoCompare

[ Source](https://github.com/capell-app/pest-plugin-blade-coverage)[ Packagist](https://packagist.org/packages/capell-app/pest-plugin-blade-coverage)[ RSS](/packages/capell-app-pest-plugin-blade-coverage/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (5)Versions (7)Used By (0)

Pest Blade Coverage
===================

[](#pest-blade-coverage)

Pest plugin for checking that Laravel Blade views are rendered by your test suite.

Normal PHP coverage never reports `resources/views/**/*.blade.php`, because Blade compiles to PHP elsewhere before it runs. This plugin fills that gap: it records the views Laravel actually renders during your tests, then compares uncovered views against a committed hash baseline so CI only fails for new or changed uncovered Blade files.

It works out of the box on a standard Laravel application (`resources/views`), and a single `include` entry extends it to package-per-directory monorepos.

Install
-------

[](#install)

```
composer require capell-app/pest-plugin-blade-coverage --dev
```

If the package is not available through Packagist yet, add a VCS repository first:

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/capell-app/pest-plugin-blade-coverage"
        }
    ]
}
```

Configure
---------

[](#configure)

Configuration is optional. With no `tests/blade-coverage.php` the plugin scans `resources/views/**/*.blade.php`, so it works out of the box on a standard Laravel app.

To customise, create `tests/blade-coverage.php`:

```
