Pest v1 had a --ci flag that could be used in CI environments to ignore ->only() calls that were accidentally checked-in to the code base.
This feature looks to have been removed around the release of Pest v2 but it is unlear if it was an intentional choice or simply an omission as a result of a refactor to the ->only() feature. The commit that disabled the feature makes no mention of that intent and remnants of the --ci feature remain in the code base (such as the Environment plugin).
This PR restores the functionality of the --ci flag by updating the Only plugin to check the Environment plugin when it is invoked.
What:
Description:
Pest v1 had a
--ci
flag that could be used in CI environments to ignore->only()
calls that were accidentally checked-in to the code base.This feature looks to have been removed around the release of Pest v2 but it is unlear if it was an intentional choice or simply an omission as a result of a refactor to the
->only()
feature. The commit that disabled the feature makes no mention of that intent and remnants of the--ci
feature remain in the code base (such as theEnvironment
plugin).This PR restores the functionality of the
--ci
flag by updating theOnly
plugin to check theEnvironment
plugin when it is invoked.Related: