Can anyone suggest an advanced resource for learning proper ROR testing? I''ve been writing web apps with ROR for nearly a year now but have been neglecting to write the proper test suites as I''m not sure exactly what requires a test and what doesn''t, which leaves me fearing I''ll spend twice as much time writing tests as actual code. Thanks! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/q8toIm-YKNMJ. For more options, visit https://groups.google.com/groups/opt_out.
On Apr 21, 2013 10:53 AM, "ROR User" <brendan.eamer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Can anyone suggest an advanced resource for learning proper ROR testing?I''ve been writing web apps with ROR for nearly a year now but have been neglecting to write the proper test suites as I''m not sure exactly what requires a test and what doesn''t, which leaves me fearing I''ll spend twice as much time writing tests as actual code. The RSpec book from pragprog actually spends a bit of time discussing rails testing using both cucumber and rspec, but i would not call it definitive. Rails Test Prescriptions is quite good, but also not definitive. A full and proper test suite for a Rails app is difficult in my view after the fact, primarily because so much of code might be written in a way that makes testing it difficult. OTOH, starting in on one at this stage is a great opportunity to go back through your code and refactor it. There are very few cases where refactoring for testability doesn''t also improve cohesiveness, decrease coupling, discovering pieces that would be better provided as gems or services to the app, performance, and if this app is to be used long term, maintainability, and decreasing bit rot.>-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Sun, Apr 21, 2013 at 11:49 PM, tamouse mailing lists < tamouse.lists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The RSpec book from pragprog actually spends a bit of time discussing > rails testing using both cucumber and rspec, but i would not call it > definitive. >Have you used mini test? Do you recommend rspec to start? I just want some comments about. What kind of testing tools do you use? Thanks in advance :) Javier -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Apr 22, 2013 6:52 AM, "Javier Quarite" <jquarites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Sun, Apr 21, 2013 at 11:49 PM, tamouse mailing lists <tamouse.lists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:>> >> The RSpec book from pragprog actually spends a bit of time discussingrails testing using both cucumber and rspec, but i would not call it definitive.> > > Have you used mini test? Do you recommend rspec to start? I just wantsome comments about. What kind of testing tools do you use?> > Thanks in advance :) > > Javier >I use rspec and I do recommend it to start. Also capybara for route and integration testing, and cucumber/gherkin for externally driven testing through cuke/capy with poltergeist/phantomjs. I also use watir for some external test scripts. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.