Download the PHP package mateffy/pest-plugin-html-reports without Composer
On this page you can find all versions of the php package mateffy/pest-plugin-html-reports. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mateffy/pest-plugin-html-reports
More information about mateffy/pest-plugin-html-reports
Files in mateffy/pest-plugin-html-reports
Download mateffy/pest-plugin-html-reports
More information about mateffy/pest-plugin-html-reports
Files in mateffy/pest-plugin-html-reports
Vendor mateffy
Package pest-plugin-html-reports
Short Description Generate interactive HTML reports of Pest test results
License MIT
Package pest-plugin-html-reports
Short Description Generate interactive HTML reports of Pest test results
License MIT
Please rate this library. Is it a good library?
Informations about the package pest-plugin-html-reports
HTML Reports for Pest PHP Tests
Generate interactive HTML reports directly from your test resultsto better understand and work with your test suite.
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)
What a single test case looks like
Installation
Install the package via Composer:
Usage
Command Line
Generate a static HTML report from a test results JSON file:
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 tostorage/framework/testing/reports.TEST_REPORT_FILENAME: The filename of the JSON report. Defaults toreport-{{date}}-{{id}}.json. The{{date}}and{{id}}placeholders will be replaced with the current date and a unique ID.
How it works
- A Pest test is run
- A pest plugin is used to listen to the test completion event and loads the required data from the Pest internals
- The data is then stored as a JSON file per run in the
storage/framework/testing/reportsdirectory - Depending on your configuration, a HTML report is automatically generated and also stored in the
storage/framework/testing/reportsdirectory. - Later on, the
artisan test-report:generatecommand can be used to generate a static HTML report from any of the historic JSON files
License
MIT License
All versions of pest-plugin-html-reports with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
prism-php/prism Version ^0.87.0
spatie/file-system-watcher Version ^1.2
spatie/laravel-package-tools Version ^1.16
pestphp/pest Version ^2.0 || ^3.0 || ^4.0
phpunit/phpunit Version ^10.0 || ^11.0 || ^12.0
spatie/laravel-markdown Version ^2.0
prism-php/prism Version ^0.87.0
spatie/file-system-watcher Version ^1.2
spatie/laravel-package-tools Version ^1.16
pestphp/pest Version ^2.0 || ^3.0 || ^4.0
phpunit/phpunit Version ^10.0 || ^11.0 || ^12.0
spatie/laravel-markdown Version ^2.0
The package mateffy/pest-plugin-html-reports contains the following files
Loading the files please wait ...