-
Notifications
You must be signed in to change notification settings - Fork 143
Replace wp-env with install-wp-tests.sh in CI #1085
Copy link
Copy link
Closed as not planned
Description
Feature Description
While using wp-env is great for local development, we should think carefully about using it for CI testing. Tools like install-wp-tests.sh are built specifically for this purpose and offer several advantages:
- Faster Tests:
install-wp-tests.shsets up the WordPress environment and runs tests much faster thanwp-env. - Reliability: We've found issues with wp-env (like in this example: Add standalone PHPUnit configs in
plugins/#1013 (comment) ). Using different tools can help us spot problems more easily among them. - Greater Control:
install-wp-tests.shlets us control the testing setup more precisely. This is important if we need to make adjustments for specific scenarios like enabling/disabling particular extensions, enabling coverage extensions, etc. - Focused Purpose:
install-wp-tests.shis designed from the ground up for WordPress testing. It does this single task exceptionally well. - Faster Fixes: With
install-wp-tests.sh, we can solve issues in our CI setup much more quickly. We can always suggest fixes upstream and they can improve our local development but upstream turnaround time should not block CI workflows.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.