sporkrb / spork

A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state.
spork.rubyforge.org
MIT License
1.4k stars 202 forks source link

Parallel testing #164

Open phuongnd08 opened 12 years ago

phuongnd08 commented 12 years ago

Spork is good. But running a single process on these multi-core machine these days is really a waste. Any plan on adding parallel support to Spork? I can imagine everytime Spork is forking, you can set a ENV variable inside the new process (like TEST_ENV_NUM, as parallel_tests do). Spork then can distribute tests to multiple process, each one with different database based on TEST_ENV_NUM (again, like parallet_tests do) Parallet test has done good job on creating rake tasks to generate multiple test databases so this can be reused.

radeno commented 12 years ago

to speed up you should use this https://github.com/grosser/parallel_tests

masterkain commented 12 years ago

[RSpec] 'script/spec_server' or spork do not work in parallel

radeno commented 12 years ago

Hmm, pity. It would be really great to have. Do you plan it for future?

phuongnd08 commented 12 years ago

So I'm working on this https://github.com/phuongnd08/multi_spork which, if combined with the pull request above, can run cucumber features and rspec specs in parallel. Please give it a try and give me feed back if you like it (or not) :)

robmathews commented 11 years ago

There is this blog post that describes two ways to use parallel_test + spork: http://www.spacevatican.org/2011/7/30/multispork/