Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide sharding support #203

Open
horenmar opened this issue Dec 8, 2024 · 1 comment
Open

Provide sharding support #203

horenmar opened this issue Dec 8, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@horenmar
Copy link

horenmar commented Dec 8, 2024

Sharding is useful trick for running tests in parallel that can be done with very minimal understanding between the test runner and the test framework.

With Catch2, you can run tests in parallel like this:

./tests --shard-index 0 --shard-count 3 &
./tests --shard-index 1 --shard-count 3 &
./tests --shard-index 2 --shard-count 3 &
wait

this splits all tests into three equi-sized groups and runs them in parallel. (Using the default decl order, but other orders are supposed as well)

@cschreib cschreib added the enhancement New feature or request label Dec 12, 2024
@cschreib cschreib added this to the v1.x milestone Dec 12, 2024
@cschreib
Copy link
Member

I think this is likely to be a desirable feature; I'd expect IDEs to make use of this for parallel test runs. It is much easier to implement than #33 at any rate! Will take a look, thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants