Skip to content

Conversation

swissspidy
Copy link
Member

@swissspidy swissspidy commented Oct 24, 2023

This is probably not the right repo for this (where is the source of truth?), but proves that running Behat tests in parallel is possible. Convenient if you want to run all tests locally quickly.

Usage: composer behat-parallel

Uses different table prefixes and cache dirs for each process.

Not fully tested, but wanted to get the idea across.

Fixes wp-cli/wp-cli#3814

@swissspidy swissspidy marked this pull request as ready for review November 2, 2023 13:49
@swissspidy swissspidy requested a review from a team as a code owner November 2, 2023 13:49
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm indifferent on this, personally. I usually only run the affected tests when working locally, and leave it up to CI to run the entire suite. The breakage is usually with different PHP versions, not random points in the test suite.

My argument against is: if we add it, we have to keep it maintained. I don't have a strong opinion, though.

@swissspidy
Copy link
Member Author

Fair point. I'll close it for now.

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

Successfully merging this pull request may close these issues.

Look into running multiple Behat tests in parallel
2 participants