-
Notifications
You must be signed in to change notification settings - Fork 99
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
How to run tests in parallel locally? #70
Comments
Here is example: https://github.com/ArturT/knapsack#how-to-run-tests-for-particular-ci-node-in-your-development-environment Could you share more info about your project context. What CI provider do you use? How long is your test suite? RSpec or something else? Why do you want to run test suite in development across threads? Is it small test suite so it's faster in development than pushing to CI? If you want to run threads using |
Thanks for such a fast follow up! My test suite is a mixture of Minitest (migrating away from) and RSpec. Between the two of them the suite is around 4-5 minutes to run fully, but if I could get that down to under a minute it would be great. We use CircleCI, which is great. It's only building on pull requests right now, and I probably could just push to a work in progress branch more. Between building a VM and everything it's 5-8 minutes on Circle to complete. I'll check out those examples |
Regarding idea how to lower down the time of builds on CircleCI you could do this:
Step 1: run your minitest test suite with You can take a look how dynamic RSpec allocation works with knapsack_pro Queue Mode, here is video at https://knapsackpro.com/ And here is explanation how to configure the proper order of knapsack_pro commands: https://github.com/KnapsackPro/knapsack_pro-ruby#what-is-optimal-order-of-test-commands If you just want to take a look at knapsack_pro configuration options please see: Let me know if I could help more :) |
I don't know, may be somebody already asked about it. |
@adis-io Here is an example how to run knapsack_pro with parallel_tests gem https://github.com/KnapsackPro/knapsack_pro-ruby#how-to-run-knapsack_pro-with-parallel_tests-gem |
I added one more example of how to use paralell_tests with knapsack_pro Queue Mode to utilize machine resource on a single CI machine. There are bash scripts that can be reused. |
I have a machine with 8+ threads. How can I run my tests in parallel with these reports on my local system?
The text was updated successfully, but these errors were encountered: