Ruby on Rails Wednesday, October 30, 2019

You said "When I log into my custom Docker container, I basically follow the same procedure that the people who rely on their host environments do." Can you run the tests successfully that way?

On Wed, Oct 30, 2019 at 10:58 AM Jason Hsu <jhsu802701@gmail.com> wrote:
I thought that would work, but simplecov isn't loading.


On Wednesday, October 30, 2019 at 10:53:06 AM UTC-5, Brandon McClelland wrote:
You would do something like this (found at https://blog.codeship.com/testing-rails-application-docker/ after googling "running rails test with docker-compose run"):

docker-compose run -e "RAILS_ENV=test" app rake test

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7bbfbc49-cf34-41ee-9f4b-f9415e631c44%40googlegroups.com.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADuEqHJJaRdzuV9ce5kAhPxsZfm99xS2KfZSaOwc%2Bk03xVyfXQ%40mail.gmail.com.

No comments:

Post a Comment