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 H.) 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 ®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.