What tools exist for parallelizing my Rails tests?
-
I have a multicore computer, but all my rspec and cucumber tests run sequentially. It would be nice if something could split them up and run them in parallel and then assemble the results. Are there any tools like this?
-
Answer:
Christopher Thorpe at Quora Visit the source
Other answers
Check out TDDium - https://www.tddium.com. It's a SaaS service exactly for that.
Girts Graudins
https://github.com/ngauthier/hydra Hydra is a distributed testing framework. It allows you to distribute your tests locally across multiple cores and processors, as well as run your tests remotely over SSH Hydraâs goals are to make distributed testing easy. So as long as you can ssh into a computer and run the tests, you can automate the distribution with Hydra. https://github.com/grosser/parallel_tests Speedup Test::Unit + RSpec + Cucumber by running parallel on multiple CPUs.
Allen Wei
You can also check Testributor. http://www.testributor.com It runs your tests in parallel using Docker on your hardware if you do not want to pay for cloud resources.This may help you if you want to run your tests using multiple cores in different computers.
Spyros Kz Bril
Though I haven't used it, it turned about #1 on google for parallelizing rspec. http://saucelabs.com/blog/index.php/2010/03/a-bit-of-sugar-and-parallelism-for-rails-and-rspec/ Essentially it's using a multi-database test environment to run specs with their own environment to avoid conflicts. Might be worth checking out.
Chris Boertien
Ruby 1.9.3 supports parallel tests. See http://www.ruby-doc.org/stdlib-1.9.3/libdoc/test/unit/rdoc/Test/Unit/Runner.html
Suchit Puri
Related Q & A:
- Unix tools: what if a file is named minus something?Best solution by Super User
- What are some good tools for interactive web scraping and automation?Best solution by Quora
- What do IQ tests determine?Best solution by Skeptics
- What opportunities exist for people with disabilities to volunteer abroad?Best solution by Yahoo! Answers
- What tools does anthropologist use?Best solution by wiki.answers.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.