pestphp / pest

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
https://pestphp.com
MIT License
9.07k stars 315 forks source link

fix: updates Only plugin to check for CI environment #1082

Closed nhaynes closed 5 months ago

nhaynes commented 5 months ago

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 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.

Related: