Skip to content

Streamline recurring setup patterns in Behat tests #383

Closed
7 of 7 issues completed
Closed

Description

@schlessera

The Behat suites of the bundled commands repeat the same setup patterns across many scenarios: installing plugins and themes from WordPress.org, resetting themes, installing a multisite network, and creating fixtures, sites or options one wp process at a time. Each repetition costs between 0.3 and 3 seconds, and together they make up a large share of the total test time.

This tracks dedicated steps and caching that make these patterns cheaper. Each change is measured against the test suites of the bundled commands that use the pattern, comparing GitHub Actions run time and reliability before and after, so we only keep the changes that make a real difference.

Activity

  1. schlessera commented on Oct 31, 2026

    @schlessera
    MemberAuthor

    Each change was measured against the test suites of the bundled commands that use the pattern, with three runs with and without the change each. The numbers are in the pull request descriptions.

    Merged:

    Closed without merging: #377, #379 and #380, which did not make a measurable difference, and in the case of #379 broke scenarios that downgrade WordPress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions