Skip to content
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

Parallel testing #164

Open
phuongnd08 opened this issue Dec 21, 2011 · 5 comments
Open

Parallel testing #164

phuongnd08 opened this issue Dec 21, 2011 · 5 comments

Comments

@phuongnd08
Copy link

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
Copy link

radeno commented Feb 16, 2012

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

@masterkain
Copy link

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

@radeno
Copy link

radeno commented Feb 16, 2012

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

@phuongnd08
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants