ruby on rails - Cucumber can't find steps when running a single feature -


i've installed cucumber new rails project (first time setting scratch) , works wonderfully when running tests (bundle exec cucumber) can't find of steps when run single feature file. how might start debug this?

rails (3.2.13) cucumber-rails (1.3.1) cucumber (>= 1.2.0)  # file listing features/ ├── campaigns │   ├── donating_campaigns.feature │   └── viewing_campaigns.feature ├── step_definitions │   └── campaign_steps.rb └── support     └── env.rb 

it find files @ same level or lower in features directory tree. if try run scenarios in features/campaigns/donating_campaigns.feature cannot find step_definitions directory.

you can use --require flag explicitly tell cucumber include before runs feature. example:

bundle exec cucumber --require features/step_definitions features/campaigns/donating_campaigns.feature 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -