-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add docker setup for more consistent testing #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really not sure about this one. "Consistent" testing almost certainly misses the point; Scimitar might be used on a wide range of Ruby versions and database combinations, even including non-ActiveRecord setups. The more varied the test environments people run, the greater the chance of finding bugs.
Of course, the project itself uses GitHub Actions to run tests so this won't affect them and is for sure only opt-in for end users, but there's nothing added in this PR to any of the docs to tell them why a gem has Docker setup present nor what they're supposed to do with it.
Notwithstanding these other issues, you'll certainly need to fix up docker-compose.yml
since it appears to be Heroku-specific.
Thanks for the feedback! I agree with your point on consistent testing, it is quite useful that it is ran on a host of different ruby versions and setups, and databases. If this is something that would benefit the Scimitar project, I can update the docs to reflect this (optional) way of running the project, mentioning that running it on one's own setup is preferred as this increases the chance of finding bugs. Lastly, I'd like to thank you for making and maintaining this project, it's been proven to be quite useful for my project! |
..to be able to do `binding.pry`, see https://github.com/pry/pry
@osingaatje definitely, yeah, please do update (As a side-note, I don't mind the introduction of Pry in there but we use |
Thanks for the feedback. I'll update the 'Tests' part to highlight the choice between running the tests locally and using the Docker setup. For the dummy test script, it is indeed a bit awkward to have to navigate back up to the root, but that is due to the ruby:3.2.2 container not recognising the commands As for the Pry situation, apparently pr #79 also includes an optional I'll quickly fix up the README and the test script. |
the `docker compose build` gave a warning about the wrong bundle version being used to bundle the project, so changed that to make the setup a little smoother
I don't see anything about Pry in #79 but it doesn't matter either way, it's harmless enough - only part of the test application, commonly used and its dependency chain revealed by the So, this is good to go now! Merging. Many thanks for the contribution 😄 |
This is now available via RubyGems in v2.6.0 / v1.7.0. |
No description provided.