deivid-rodriguez/pry-byebug

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

davidenglishmusic opened this issue · 0 comments

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?