views:

17

answers:

1

Hi,

I would like to modify cucumber so that when a given feature is being executed (say "login.feature") I want only login_steps.rb to be loaded for the web steps. Other step files should not be loaded.

IMO this would be very useful to have the same steps but which differ in implementation work accordingly from the feature's name which is being executed.

Since I have almost a hundred scenarios and I would prefer if the steps were of high level steps this would make sense.

Any ideas?

A: 

Currently, the only way to accomplish this (short of patching cucumber itself) is to put each feature into a separate directory tree with its own env.rb file and step_definitions directory.

See this post on the mailing list for more details.

John