You would either use RSpec or Test::Unit. Test unit built into rails
while rspec seems to be the flavor of the day. I use capybara for
cucumber testing, when you want human-readable output as part of your
test suite. factory girl is a replacement to rails fixtures, which are
unreliable.

On Jul 28, 1:32 pm, Kevin McCaughey <li...@ruby-forum.com> wrote:
> Hi,
>
> I am confused about the amount of different programs/suites/gems
> involved in testing in RoR. So far I have a list of:
>
> Webrat, Capybara, Rspec, built in integration tests, cucumber, guard,
> spork, testunit (I get this one!), factory girl etc bloody etc.
>
> It seems to me that the authors (like Michael Hartl) I am following hop
> about and use a lot of different programs to test with, but with little
> explanation of *why* they choose a particular setup. In fact, I bought a
> book on Rspec only to find out that he is changing to cucumber later??
> This confusion exists on other tutorials too.
>
> It seems like testing is really fragmented and constantly changing.
>
> I would be grateful if anyone has the time to explain maybe what is
> going on with testing in Rails as I am really confused. I understand the
> basics of TDD/BDD (and why BDD etc) but I feel like I am lost on a
> sinking ship, the (web)rats are leaving, Capybara's fleeing, with
> flotsam and jetsam of cucumbers and (r)spectacles all around...
>
> It just isn't making sense and I cannot seem to pick out any logical
> thrust behind the choice of testing methodology.
>
> Many thanks,
>
> Kevin McCaughey
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to