top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

What do you prefer RSpec or Cucumber

+1 vote
51 views
posted Aug 22, 2013 by Bob Wise

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

3 Answers

+1 vote

I highly recommend picking up The RSpec Book, published by Pragmatic Programmers [http://pragprog.com/book/achbd/the-rspec-book]. It discusses both RSpec and Cucumber: when and how to use both of them. They actually work well together, and complement each other in many ways.

For me, RSpec is the way I like to perform unit and functional testing, while Cucumber, with the Gherkin language, seems ideal for describing and testing the larger elements of the application, and are quite well suited to documenting stories as one does in Agile development, and implementing them to provide acceptance tests for features and releases. Cucumber is useful also to drive external testing of web applications via Capybara or Watir, and also for driving command line tools via Aruba.

answer Aug 22, 2013 by Deepak Dasgupta
+1 vote

My rule of thumb : Cucumber for integration testing ( output = documentation of features ) and RSpec for unit testing ( output = documentation of code )

answer Aug 23, 2013 by Satish Mishra
+1 vote

I know a lot people may disagree, but I believe that using Cucumber is counterproductive as writing plain English text and then parsing it with regular expressions is somewhat overkill and error prone. I think anyone should use Cucumber only if they have a strong reason to.

answer Aug 23, 2013 by Meenal Mishra
Similar Questions
+1 vote

Could anyone tell me why my spec/features are not being read?
Ruby 2.0Rails 4.0Rspec 2.14.0capybara 2.1.0

It is a fresh 'rails new some_app'. I created a spec/features directory and added a bla.rb with bad syntax to cause it to fail, when I run rspec it says 0 examples and 0 failures. Am I doing something wrong?

0 votes

I am building a multi-page rails web app and am struggling with finding a good JavaScript framework to use. I could use jQuery for all the low-level DOM manipulations but would like to benefit from the structure of a good framework.


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...