ruby on rails - Is there a point in using Unit Test, Rspec, Cucumber and Capybara? -
i origin @ ruby , read different test methods/frameworks: unit test (minitest::unit latest ruby version), rspec, cucumber , capybara. don't grasp what's main "value" of each of them, differentiating other ones , if could/should using mix of of them ensure our app tested?
i utilize rspec
functional testing , capybara
/cucumber
integration testing. rspec
great writing tests create sure classes perform expect them to. cucumber
great (along capybara, or webrat) making sure views perform way expect them to.
testing huge asset writing rails apps. it's amazing how i'll alter , tests grab there's unexpected side effect change. helps resolve bugs beingness able duplicate them in test , making test pass, causing bug resolved.
so: rspec
(and factorygirl
) making sure classes they're supposed , cucumber
create sure user interacts web site in manner intended.
ruby-on-rails ruby unit-testing testing tdd
No comments:
Post a Comment