Forum: RSpec [Cucumber] How Do You Use Cucumber?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ef0db53920b243d6758c2f6b1306df0d?d=identicon&s=25 Steve Ross (cwd)
on 2009-02-03 18:44
(Received via mailing list)
I'm using Cucumber on my current project and it's causing me to wonder
what other people's experience has been. I've read discussions about
speeding up Cucumber and a basically everything else I can. Also, the
rSpec book is articulate on the subject. What I'm curious about is
whether a survey like this (in your opinions) would add useful

Survey: How You Use Cucumber

Do you:

- Write failing steps first, then make them pass?
- Use mocks/stubs?
- Hit the database exactly as the application would or do you cache
intermediate results?
- Run:
   - Single scenarios instead of a whole feature
   - Individual features instead of single scenarios
   - All features instead of individual scenarios
   - Negative as well as positive scenarios
- Use the helpful snippets for pending steps
- Still use rSpec controller or view specs
- Write features, then refactor parts out into shared steps later
- Use the Textmate bundle
- Run Cucumber all the time when developing controllers/views
- Only run Cucumber for integration tests
- Use an imperative or declarative style to describe scenarios
- Ever include substitutable elements for readability that aren't used
(i.e., /"(.*)" looks at his watch/ do |user| # user not referenced in

I'm happy to put a survey out there on whatever survey site people
think is good once I have a good set of questions if there is interest
and then tabulate the results.

Good idea? Repetitive? Comments?


48641c4be1fbe167929fb16c9fd94990?d=identicon&s=25 Mark Wilden (Guest)
on 2009-02-03 19:40
(Received via mailing list)
On Tue, Feb 3, 2009 at 9:42 AM, s.ross <> wrote:

> - Use the Textmate bundle

I just wanted to reply to this - Tim Pope's Cucumber plugin for Vim is
awesome. You can be editing a feature step and go to its definition with

13d7a3ab12ec57e0d372d7115362cb91?d=identicon&s=25 comopasta Gr (comopasta)
on 2009-11-05 10:49

So late reply after your post.
I just started with cucumber and actually the list of questions you
collected and answers to them (or points of views) would be quite nice.
Even though different cases will require different approaches.

But well if your idea ever materializes it will be interesting to check
in my opinion. Of course participation is the key in a survey...

This topic is locked and can not be replied to.