Ruby on Rails
Thursday, January 8, 2015
I'm going through Hartl's Rails tutorial, which now uses Rails 4.2 and Guard with minitest.
Having Guard up and running does not automatically run tests; I have to press Enter to trigger the tests.
I can get the tests to run automatically upon starting Guard by changing "guard :minitest, spring: true, all_on_start: false do" in the Guardfile to "guard :minitest, spring: true do". (This change means that the all_on_start parameter is set to true by default.)
How can I get the tests to run automatically when I modify files in the app? While I don't need this automatic testing to get through railstutorial.org, I want to have this capability for working on more serious apps. I'd like the tests to begin BEFORE I click on the terminal window that I have dedicated to Guard testing.
-- Having Guard up and running does not automatically run tests; I have to press Enter to trigger the tests.
I can get the tests to run automatically upon starting Guard by changing "guard :minitest, spring: true, all_on_start: false do" in the Guardfile to "guard :minitest, spring: true do". (This change means that the all_on_start parameter is set to true by default.)
How can I get the tests to run automatically when I modify files in the app? While I don't need this automatic testing to get through railstutorial.org, I want to have this capability for working on more serious apps. I'd like the tests to begin BEFORE I click on the terminal window that I have dedicated to Guard testing.
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/57c016e1-2a13-44a7-a856-b31319b41876%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment