-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add support for multi-threaded test execution #33
Comments
Another possibility is to implement what gtest calls "sharding" which is a multi processing approach. You tell the test executable when running it, its index I am writing it here because it didn't see that it's supported in the readme. |
Hi and thanks for the tip! You are correct, this is not currently supported. I know Catch2 supports this too. Do you know how the different processes get spawned? I.e., is this meant to be supported by an external scheduler / test runner? And do you know how it meshes with test filtering? |
Yes, the user has to run the test executable
I do not unfortunately. Although I think it's best to filter first and then subdivide the subset that remains, so it probably does that. |
The framework is written to be thread-safe, but there is currently no way to run tests in parallel. This should be easy to add, but perhaps not without using heap memory. In which case, this will have to be guarded by macros, so it can be disabled if necessary. The heap allocation should be limited to the creation of the threads; everything else we should be able to implement with atomics.
The text was updated successfully, but these errors were encountered: