-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Separate optional test dependencies with Gemfiles #239
Conversation
Hey @JacobEvelyn, I'm just taking a nosy peek at this PR to understand why the tests are failing. I don't quite understand the test output:
Am I correct in saying that this test (for example) failed because the app didn't give the correct output? If the correct output is And I'm guessing the line Sorry for all the questions, just eager to understand what is going on so I can help in any way I can 🤓 Thanks! |
Hey @shen-sat, great questions. This is actually a dependency issue— Re: the simplecov maintainer's suggestion of using |
Hey @JacobEvelyn, thanks for your explanantion and the link to your PR - that cleared things up :) I can't think of many cons - the code on github will eventually be the code on RubyGems right? And looking at the RubyGems security policy, there doesn't seem to be any added security when using RubyGems as a source as opposed to Github. I guess the only con is that when using Github as a gem source then you're kind of constantly using it in "beta" mode ie any pull requests that get merged into master for SimpleCov will automatically be applied to SimpleCov in Friends, even if the pull request ends up breaking the gem somehow. Where as if you use RubyGems, then you will always be using "stable" releases, I guess..? The Gemfile modification for using a github source for a gem seems simple enough. I've actually used exclusively Gemfiles for dependencies, so I'm happy to make a pull request for this if you want, and we can see it in action? |
Codecov Report
@@ Coverage Diff @@
## master #239 +/- ##
======================================
Coverage 98.3% 98.3%
======================================
Files 23 23
Lines 709 709
======================================
Hits 697 697
Misses 12 12 Continue to review full report at Codecov.
|
This commit adds a `Gemfile.old` which is used for testing old Ruby versions in Travis. This file does not include dependencies such as Rubocop and SimpleCov that are only used in either local development or our Travis build for the latest Ruby version. Included in these changes is pinning the SimpleCov dependency to the version fixed by simplecov-ruby/simplecov#747 to fix tests. [@shen-sat](https://github.com/shen-sat) was instrumental in discussing these changes and coming up with many parts of the overall approach. Many thanks! Fixes #238
Sure, @shen-sat, I'm open to trying it. One way to avoid the "beta" issue is to just pin simplecov to the specific commit we want. I wanted to include your commits from #240 to give you credit, but it got a bit too complicated to make that work so in the end I just took some of your ideas and gave you a shoutout in the commit message. I hope that's okay! I also figured that with the other open PRs you have, you'll be an official contributor soon anyway! 🎉 The one thing I didn't add yet is the Dependabot config file. If Dependabot starts getting annoying I figured one of us is welcome to add that! |
Ah, looks like I just missed out on my first merged pull request in OS 😢 But understandable! Most of all I'm glad the SimpleCov issue is fixed and I now have rubocop available to use locally - a clean slate for me to start building on top of 🙌 Thanks for the shout-out @JacobEvelyn, and I aim to be an official contributor soon ✊ |
This commit adds a
Gemfile.old
which is used for testingold Ruby versions in Travis. This file does not include
dependencies such as Rubocop and SimpleCov that are only
used in either local development or our Travis build for
the latest Ruby version.
Included in these changes is pinning the SimpleCov dependency
to the version fixed by
simplecov-ruby/simplecov#747 to fix tests.
@Shen-Sat was instrumental in
discussing these changes and coming up with many parts of
the overall approach. Many thanks!
Fixes #238
Hi there! Thanks so much for submitting a pull request!
Let's just make sure together that all of these boxes are checked before we
merge this change:
README.md
file is updated as appropriate.Don't worry—this list will get checked off in no time!