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

Is it possible to tell spork to connect to a DB other than the normal test DB? #245

Open
jmuheim opened this issue Nov 6, 2013 · 1 comment

Comments

@jmuheim
Copy link

jmuheim commented Nov 6, 2013

I often run the whole test suite in one directory, while actively develop and run tests in another directory. So sometimes two tests run on the same Mongoid DB and "clear each other out" (Mongoid doesn't have transactions or something like that).

So: is it possible to tell spork to connect to a DB other than the normal test DB?

Thanks anyway for this great tool.

@robsonmwoc
Copy link

Hi @jmuheim.

When you talk "run the whole test suit in one directory, while actively develop....in another directory", this means two different code bases, sharing the same database configuration?

If the answer is true, you can just change the configuration for one of them. This solution may be a little foolish, but sometimes the easiest way is the best. :)

Regards.

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

2 participants