I am overwhelmed with the number of tools used to test applications with rails, where do I start?

I never worried about testing because my applications were relatively simple, and I wanted to focus on studying rubies and rails and developing functionality. I want some tools / gems to be relatively easy to use. Ideally, I want:

  • Model testing
  • Assistant Testing
  • Integration testing (I will not test my views or controllers directly)
  • See test coverage
  • Automate (complete all my tests with a single command)

I am thinking of MiniTest (or RSpec?) For the first two, adding Capybara to test integration, and I have no idea about the last two.

I use:

  • OSX 10.7.3
  • Ruby 1.9.3-p194
  • Rails 3.2.3

!

+3
3

ruby-toolbox.com , " " " ". , .

SimpleCov Guard .

, , , BDD (Behavior Driven Development)? TDD (Test Driven Development)?

, , . Google, , , .

BDD , Cucumber , RSpec .

, "RSpec Book" - , RSpec, Cucumber, Webrat ( capybara, ) Selenium.

, , ...

+3

. .
- RESTful, API.

, , .

.

, , .

rspec .

.

, Guard .

+1

- . , Rails, .

.

:

I have seen many unsuccessful testing attempts, but I have never seen them unsuccessful because they are choosing the wrong tool / framework. They fail because they don’t know how to master the tools that they use and are pretty good at the basics of testing.

Learn more about testing Rails here.
http://guides.rubyonrails.org/testing.html

0
source

All Articles