pestphp / pestphp/pest

[Bug]: Pest 4.0.2: missing implementations in StateGenerator.php

Open
#1,462 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
11.7k
Forks
538
Avg merge
4d 11h
Merged PRs (30d)
8

Description

What Happened

time vendor/bin/sail php vendor/bin/pest --stop-on-defect --stop-on-error --stop-on-failure --stop-on-risky --passthru-php="-derror_log=/tmp/php.log" --parallel

...............................................................................................................................................................

Tests: 159 passed (841 assertions)
Duration: 2.40s
Parallel: 16 processes

real 0m3,742s
user 0m0,250s
sys 0m0,189s

Processing finishes successfully, but only 159 tests are executed instead of 2.7k.

So the workers are mostly crashing, due to:

tail -f /tmp/php.log
[22-Aug-2025 14:59:43 UTC] PHP Warning:  Undefined array key "testdox-columns" in /var/www/html/vendor/pestphp/pest/bin/worker.php on line 89
[22-Aug-2025 14:59:43 UTC] PHP Warning:  Undefined array key "testdox-columns" in /var/www/html/vendor/pestphp/pest/bin/worker.php on line 89
[22-Aug-2025 14:59:43 UTC] PHP Warning:  Undefined array key "testdox-columns" in /var/www/html/vendor/pestphp/pest/bin/worker.php on line 89
[22-Aug-2025 14:59:43 UTC] PHP Warning:  Undefined array key "testdox-columns" in /var/www/html/vendor/pestphp/pest/bin/worker.php on line 89
[22-Aug-2025 14:59:43 UTC] PHP Warning:  Undefined array key "testdox-columns" in /var/www/html/vendor/pestphp/pest/bin/worker.php on line 89
[22-Aug-2025 14:59:43 UTC] PHP Warning:  Undefined array key "testdox-columns" in /var/www/html/vendor/pestphp/pest/bin/worker.php on line 89
[22-Aug-2025 14:59:43 UTC] PHP Warning:  Undefined array key "testdox-columns" in /var/www/html/vendor/pestphp/pest/bin/worker.php on line 89
[22-Aug-2025 14:59:43 UTC] PHP Warning:  Undefined array key "testdox-columns" in /var/www/html/vendor/pestphp/pest/bin/worker.php on line 89
[22-Aug-2025 14:59:43 UTC] PHP Warning:  Undefined array key "testdox-columns" in /var/www/html/vendor/pestphp/pest/bin/worker.php on line 89
[22-Aug-2025 14:59:43 UTC] PHP Warning:  Undefined array key "testdox-columns" in /var/www/html/vendor/pestphp/pest/bin/worker.php on line 89

Update: After fixing worker.php, tests are still not completely executed.

How to Reproduce

pest --parallel

Sample Repository

No response

Pest Version

4.0.2

PHP Version

8.4.11

Operation System

Linux

Notes

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running pest --parallel with Pest 4.0.2 and inspect the warning at worker.php line 89, then read StateGenerator.php for the missing implementations named in the issue. Confirm the fix by verifying that parallel execution runs the full test suite rather than only 159 tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.