Skip to content
inkdeep edited this page Sep 13, 2010 · 13 revisions

Q: My step definitions are not being included when I have my features in subdirectories.

A: The bundle runs the selected feature directly. Meaning, if you try to run ‘features/topic/awesomeness.feature’ then the bundle will just run ‘cucumber --format=html features/topic/awesomeness.feature’. The problem with this is that the support files and step definiton files are not in the topic subdir. To change the behavior of the bundle and how it runs the features do the following:

  • Go to preferences..
  • Click on Advanced.
  • Click on Shell Variables.
  • Enter new one:
    • Variable: TM_CUCUMBER_OPTS
    • Value: --format=html -r features

Doing this will ensure that every ruby file in the features dir and subdirs will be loaded.

Clone this wiki locally