blog.robotex.de

Cucumber: organizing features and steps

I've just written my first feature in cucumber and I'm thinking about the best way to organize features and steps.

I'll give a try at following structure:

Rails.root
|-features
  |-[business_need]
    |-[feature_n].feature
      |- step_definitions
        |- [feature_n]_steps.rb

In reality, it looks like this:

Rails.root
|-features
  |- platform_backend
    |-create_a_customer.feature
      |- step_definitions
        |- create_a_customer_steps.rb

Back