You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Pest with the -c option (the short form of --configuration), Pest does not recognize it properly. Instead, it only handles the --configuration option, leading to unexpected behavior. After some debugging, I see that using -c an additional internal --configuration argument pointing to <project_root>/.pest.xml is generated. This internally added argument then overwrites the previous user-provided -c option in phpunit.
I investigated the issue and located the cause in the Pest codebase:
What Happened
When running Pest with the
-c
option (the short form of--configuration
), Pest does not recognize it properly. Instead, it only handles the--configuration
option, leading to unexpected behavior. After some debugging, I see that using-c
an additional internal--configuration
argument pointing to<project_root>/.pest.xml
is generated. This internally added argument then overwrites the previous user-provided-c
option in phpunit.I investigated the issue and located the cause in the Pest codebase:
vendor/pestphp/pest/src/Plugins/Concerns/HandleArguments.php
Here, the code only checks for
--configuration
instead of both-c
and--configuration
. The arguments are obtained from:vendor/pestphp/pest/src/Plugins/Configuration.php
How to Reproduce
-c
option:Observe that the specified configuration file is not properly loaded.
Run Pest with the
--configuration
option:Sample Repository
No response
Pest Version
3.3.2
PHP Version
8.3.12
Operation System
macOS
Notes
No response
The text was updated successfully, but these errors were encountered: