I’ve never bothered with testing because my apps where relatively simple and I wanted to focus on learning ruby and rails, and developing functionality. I want some tools/gems that are relatively simple to use. Ideally I want to do:
- Model testing
- Helper testing
- Integration testing (I won’t test my views or controllers directly)
- See test coverage
- Automate (run all my tests with one command)
I’m thinking about MiniTest (or RSpec?) for the first two, adding Capybara for integration testing and I have no idea about the last two.
I’m using:
- OSX 10.7.3
- Ruby 1.9.3-p194
- Rails 3.2.3
Thanks!
For finding the right tool for each task I recommend ruby-toolbox.com and searching by category, in your case, ‘Code Metrics’, and ‘Continuous Testing’. This way the possible solutions appear ordered by popularity and usage rate in the ruby comunity.
For those specific tasks I use SimpleCov and Guard respectively.
About the tests you mentioned, no offense, but do you know what BDD(Behaviour Driven Development) is? And the difference to TDD(Test Driven Development) ?
If yes I’m sorry, but I mentioned it just in case. If not just make a quick google search and then decide which paradigm of testing do you want, and with which purpose.
I personally try to apply the BDD concept on my projects and I use Cucumber for features, while using RSpec for specs.
By the way, “The RSpec Book” is an excelente book about it and it covers RSpec, Cucumber, Webrat(very similar to capybara, the most popular now) and Selenium.
Hope this helped, if not too much information…