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

Question: Is there a recommended way of requiring the gem for test but not CI? #425

Open
davidenglishmusic opened this issue Feb 12, 2024 · 0 comments

Comments

@davidenglishmusic
Copy link

davidenglishmusic commented Feb 12, 2024

I am working on speeding up some CI runs and one tweak would be not load the pry gems for that environment. At the same time, I want them available for running tests locally. My current solution is to use an environment variable:

group :development, :test  do
  gem 'pry-byebug', require: !ENV['CI']
end

Is there a better way to do this?

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

1 participant