PHPackages                             mateffy/pest-plugin-html-reports - 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. mateffy/pest-plugin-html-reports

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

mateffy/pest-plugin-html-reports
================================

Generate interactive HTML reports of Pest test results

1.1.0(7mo ago)1132↓50%MITPHPPHP ^8.1CI failing

Since Aug 7Pushed 7mo agoCompare

[ Source](https://github.com/Capevace/pest-plugin-html-reports)[ Packagist](https://packagist.org/packages/mateffy/pest-plugin-html-reports)[ RSS](/packages/mateffy-pest-plugin-html-reports/feed)WikiDiscussions main Synced 1mo ago

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

[![HTML Reports for Pest Tests](./docs/images/header-1.png)](./docs/images/header-1.png)

 HTML Reports for Pest PHP Tests
=================================

[](#html-reports-for-pest-php-tests)

  **Generate interactive HTML reports directly from your test results
 to better understand and work with your test suite.**

Features
--------

[](#features)

- 📊 Generate static HTML reports from Pest test results JSON
- 🔍 Search UI to find test cases and dig deeper than you ever did before
- 🔗 Editor deep links (PhpStorm, VS Code, Sublime Text, Vim)
- 🐙 GitHub linking for PRs and issues (using Pest's `->todo(issue: 123)` annotations)
- 📝 Use Markdown in your test case notes (`->note('Note with **bold** text')`)
- 📦 HTML report is completely self-contained in a single file (Tailwind + Alpine from CDN)

[![Screenshot showing an example report](./docs/images/screenshot.png)](./docs/images/screenshot.png)

 [ View Interactive Example ⇢ ](https://mateffy.me/pest-plugin-html-reports/report.html)

 [![What a single test case looks like](./docs/images/explainer.png)](./docs/images/explainer.png)What a single test case looks like

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require mateffy/pest-plugin-html-reports
```

Usage
-----

[](#usage)

### Command Line

[](#command-line)

Generate a static HTML report from a test results JSON file:

```
php artisan test-report:generate
```

```
# With some extra options
php artisan test-report:generate \
    --input=storage/app/pest_test_results.json \
    --output=public/pest-report.html \
    --title="My Project Test Results" \
    --project-path=/path/to/your/project \
    --repository=your-username/your-repo
```

### Environment Variables

[](#environment-variables)

You can configure the output directory and filename of the JSON report by setting the following environment variables:

- `TEST_REPORT_DIR`: The directory where the JSON report will be saved. Defaults to `storage/framework/testing/reports`.
- `TEST_REPORT_FILENAME`: The filename of the JSON report. Defaults to `report-{{date}}-{{id}}.json`. The `{{date}}` and `{{id}}` placeholders will be replaced with the current date and a unique ID.

How it works
------------

[](#how-it-works)

1. A Pest test is run
2. A pest plugin is used to listen to the test completion event and loads the required data from the Pest internals
3. The data is then stored as a JSON file per run in the `storage/framework/testing/reports` directory
4. Depending on your configuration, a HTML report is automatically generated and also stored in the `storage/framework/testing/reports` directory.
5. Later on, the `artisan test-report:generate` command can be used to generate a static HTML report from any of the historic JSON files

License
-------

[](#license)

MIT License

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance64

Regular maintenance activity

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~21 days

Total

4

Last Release

220d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e572442281b0c1b6e8e8f966cc908161a66c4c822e950ff278f8f90dc4f2d2cd?d=identicon)[mateffy](/maintainers/mateffy)

---

Top Contributors

[![Capevace](https://avatars.githubusercontent.com/u/10093858?v=4)](https://github.com/Capevace "Capevace (47 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mateffy-pest-plugin-html-reports/health.svg)

```
[![Health](https://phpackages.com/badges/mateffy-pest-plugin-html-reports/health.svg)](https://phpackages.com/packages/mateffy-pest-plugin-html-reports)
```

###  Alternatives

[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3513.9M32](/packages/jasonmccreary-laravel-test-assertions)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[typo3/testing-framework

The TYPO3 testing framework provides base classes for unit, functional and acceptance testing.

675.0M775](/packages/typo3-testing-framework)[christophrumpel/missing-livewire-assertions

This package adds missing livewire test assertions.

149336.0k9](/packages/christophrumpel-missing-livewire-assertions)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

31252.7k5](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

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