pestphp / pestphp/pest

[Bug]: Different stats report at the and with vs without `--parallel`

Open
#1,633 0 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

We use pest in a new project and we are somewhat irritated. In the metrics at the end, there are different values been reported, when we compare with and without --parallel .

I would assume that these numbers should match exactly.

How to Reproduce

Run tests twice, with and without --parallel:

/app# ./vendor/bin/pest | grep -A5 'Tests:'
  Tests:    2 deprecated, 1 skipped, 821 passed (2073 assertions)
  Duration: 4.85s

/app# ./vendor/bin/pest --parallel | grep -A5 'Tests:'
  Tests:    1 skipped, 455 passed (2073 assertions)
  Duration: 4.11s
  Parallel: 7 processes
Sample Repository

No response

Pest Version

4.3.2

PHP Version

8.5.0

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 the two commands from the report on Pest 4.3.2 and compare the final test summaries. Trace where the normal and --parallel runs assemble their counts, then ensure skipped, deprecated, passed, and assertion totals are reported consistently; rerun both commands to confirm matching results.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.