Skip to content

Replace wp-env with install-wp-tests.sh in CI #1085

@thelovekesh

Description

@thelovekesh

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.sh sets up the WordPress environment and runs tests much faster than wp-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.sh lets 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.sh is 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions