-
Notifications
You must be signed in to change notification settings - Fork 30
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
Feature Request: Run tests in parallel #4
Comments
There is some support for running tests in parallel via the Test Explorer. I think you have to set the I agree having parallel execution also when tests are in the same executable would be a nice to have. I will explore this possibility and if possible add it to a future version. As for some tests it would probably be better that they are not run in parallel with other tests I will probably include an opt-out via a tag (e.g., |
Ah, multiple processes (with the |
Any news on this? (Just for the record, catch itself doesn't support parallelism: https://github.com/catchorg/Catch2/blob/master/docs/limitations.md#running-multiple-tests-in-parallel) |
I'm currently working on finalizing a new version, where it is possible to choose to run multiple tests in a single process from within the test explorer. Currently for each individual test case a new process is started. If you have a lot of test cases in a single Catch2 executable, this has the potential to make the tests run significantly faster via the Test Explorer. Next step would be to add the possibility to also run the tests for a single Catch2 executable in parallel. My goal is to have the new version out before end of the year. |
For running tests in single Catch2 binary in parallel, look at sharding (assuming a new-enough version of Catch2). |
I believe the test executables currently run one at a time. However, longer running tests can queue up the short-quick tests and make the overall test run take longer than it could if the tests were ran in parallel. It'd be nice if the test-explorer supported multiple tests to be ran at a single time. Maybe a MaxProcesses setting or something to control how many run at once?
Thanks again!
The text was updated successfully, but these errors were encountered: