On Apr 21, 2013 10:53 AM, "ROR User" <[email protected]> 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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to