Ruby on Rails Friday, August 23, 2013




On Sat, Aug 24, 2013 at 2:58 AM, Rekha Benada <rekha.benada@gmail.com> wrote:
Rspec is a popular framework for unit testing and Cucumber is used for integration testing and behavior driven development
It's pretty strange to hear since RSpec description is "BDD for Ruby". More than that, recent versions of RSpec for Rails (v2.12.0 or greater) support feature specs for integration testing whose syntax is very similar to Cucumber features. For more information see: http://www.andylindeman.com/2012/11/11/rspec-rails-and-capybara-2.0-what-you-need-to-know.html
 

Unit tests with rspec confirm that small, discrete portion continue working as developers add features.
Integration tests built with cucumber determine wether the application's features work as expected,testing the application from user point of view.

Thanks
On Thursday, August 22, 2013 2:29:04 PM UTC-7, Jason Hsu, Android developer wrote:
So far, I've been using RSpec for testing my Rails apps simply because that's what railstutorial.org emphasizes.

However, I am in the process of trying out Cucumber.  I like the fact that it's in plain English, and this is an asset for communicating with clients or other people who aren't Rubyists.  Migrating to Cucumber sounds like a good idea.

I'm curious about what you prefer.  Do any of you know Cucumber well, yet still prefer RSpec?  If so, why?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/38f9f99b-2dd0-46ae-9d79-bf20088a390d%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAFp%3DAzPE4ytFbd51YfkJ-c_crz%3D%3Dyfv8Ny8sOuPY8LZSv2aptA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment