pestphp / pestphp/pest

[Bug]: --tia option not recognized depending on option order

Open
#1,791 1 comment 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

When running

php artisan test --tia --parallel 

  ─ Experimental TIA mode enabled / fresh graph.

  ..

  Tests:    2 passed (2 assertions)
  Duration: 0.38s

Everything is fine.
But when inverting the two options

php artisan test --parallel --tia

   The "--tia" option does not exist.  
How to Reproduce

Install a fresh laravel app
initialize a git repository and create a first commit (required for Tia)

run

php artisan test --parallel --tia

#   The "--tia" option does not exist.  
Sample Repository

No response

Pest Version

5.0.2

PHP Version

8.5

Operation System

macOS

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 reproducing the issue with php artisan test --tia --parallel and php artisan test --parallel --tia in a fresh Laravel app with an initial Git commit. Trace the option parsing entry point for php artisan test and parallel execution; done means both option orders recognize --tia and the existing tests still pass.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.