-
Notifications
You must be signed in to change notification settings - Fork 37
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
Run rethink from integration tests #137
Conversation
Hey Greg, Thanks for the PR. I love getting new contributions to this project. This looks like it's a great start (fixing #124), but there are a few things that I think could be improved; here are some suggestions:
In addition to the suggestions, I have two concerns:
|
Check path for rethinkdb binary Use port from app.config for rethinkdb instance Do not start rethinkdb if something is already running on the configured endpoint
Thanks for the excellent suggestions and encouragement! I have implemented all of them, and made a couple tweaks to address your concerns, as well:
I ran into one snag searching path, though. I found if I ran it from the test runner in MonoDevelop, the path was mangled and didn't include /usr/local/bin, which homebrew uses for things. (That's how I installed rethinkdb.) I left in a hardcoded path for that, but it uses PATH as well. There might be an alternative I didn't think of, though. |
Run rethink from integration tests; fixes #124
Thanks @tetious, this looks great. :-) |
Thanks @tetious, I like removing things from my TODO list, especially if I didn't have to do it. |
Thanks guys. Glad I could help! |
This is a first pass at running rethink from the integration tests. I'm not sure if this is what you had in mind, but it seems to work pretty well.
I also changed the spawned rethink to bind to a different port, and use a temp folder for its DB to prevent stomping on an already running development instance.