amatsuda / traceroute

A Rake task gem that helps you find the unused routes and controller actions for your Rails 3+ app
MIT License
903 stars 38 forks source link

Allow running in test environment #26

Open agrimm opened 8 years ago

agrimm commented 8 years ago

I'd like to be able to run traceroute in a CI environment. At one stage I tried doing this with

RAILS_ENV=development FAIL_ON_ERROR=1 bin/rake traceroute

but unfortunately that workaround isn't possible because unrelated issues prevent me from using the development on CI. Can you allow traceroute to be run when RAILS_ENV is test?

hlascelles commented 3 years ago

We run our CI with RAILS_ENV=test FAIL_ON_ERROR=1 bundle exec rake traceroute and it works fine. Not sure if this has changed in the gem, but it works for me (version 0.8.1, Rails 5.2).