Download the PHP package cornermonkey/pest-plugin-rerun without Composer

On this page you can find all versions of the php package cornermonkey/pest-plugin-rerun. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pest-plugin-rerun

Pest Plugin: Only Failed / Rerun Failed

CI

Adds two independent CLI flags to Pest v4:

No phpunit.xml changes are required in consuming projects.

Install

Composer's plugin allow-list may prompt you to trust pestphp/pest-plugin (the mechanism Pest itself uses to discover plugins from composer.json's extra.pest.plugins); this package is registered the same way.

Usage

Every run (with or without either flag) overwrites .pest-only-failed.json in the project root with the current run's failures — a plain overwrite, not a merge, so a test that's since been fixed drops off the list automatically. Add this file to your .gitignore.

The flake-exit-code decision

If --rerun-failed reruns a test and it passes, the overall run still exits non-zero. The initial failure counts. The rerun section is purely informational — it tells you whether a failure was consistent (fails again) or possibly flaky (passes on rerun), but it does not launder the exit code. This is a deliberate strict default: CI should not go green just because a test happened to pass on a second attempt.

--parallel support

Both flags work under --parallel. Each paratest worker is a separate process with its own partial view of the results — only the fraction of tests it happened to run — so this plugin does nothing in worker processes and defers entirely to the coordinator process. The coordinator never runs any tests itself (it just dispatches work to workers and waits), so instead of PHPUnit's normal per-process result facade, it reads Pest\Plugins\Parallel\Paratest\WrapperRunner::$result — the object Pest's own parallel runner populates by merging every worker's serialized result once they've all finished. That merged result is what gets written to .pest-only-failed.json and what --rerun-failed reruns.

The rerun itself always runs serially, even after a --parallel main pass — a rerun set is normally a handful of tests, not enough to be worth re-parallelizing, and it avoids recursing through the whole worker/coordinator split a second time.

--only-failed's read side needs no special handling at all: it pushes a --filter argument before Pest hands off to paratest, so paratest just distributes the already-narrowed test list across workers as normal.

Known upgrade risks

This plugin relies on internal PHPUnit/Pest details that are not covered by either project's backward-compatibility promise:

If either of these break, both flags will most likely fail to select the right tests (or select none) rather than fail silently — bug reports welcome.

How it works


All versions of pest-plugin-rerun with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
symfony/process Version ^7.4.13|^8.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cornermonkey/pest-plugin-rerun contains the following files

Loading the files please wait ...