# Cucumber directories not working

**URL:** <https://www.ruby-forum.com/t/cucumber-directories-not-working/184222>\
**Category:** Rails\
**Created:** [February 26, 2010, 9:30pm UTC](https://www.ruby-forum.com/t/cucumber-directories-not-working/184222 "2010-02-26T21:30:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [February 26, 2010, 9:30pm UTC](https://www.ruby-forum.com/t/cucumber-directories-not-working/184222/1 "2010-02-26T21:30:16Z")

</div>

I am organizing a directory structure under the features directory but  
when I run cucumber it is still trying to look for the \*.feature files  
in the main directory. How do I get cucumber to look in other  
directories?

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [February 27, 2010, 3:11am UTC](https://www.ruby-forum.com/t/cucumber-directories-not-working/184222/2 "2010-02-27T03:11:15Z")

</div>

Chris H. wrote:

> I am organizing a directory structure under the features directory but  
> when I run cucumber it is still trying to look for the \*.feature files  
> in the main directory. How do I get cucumber to look in other  
> directories?

I wanted a different structure than the default also and ended up  
writing my own wrapper script to call cucumber. Have you tried a fully  
qualified relative path to the feature file? And if your step files are  
in a different directory than step\_definitions, you’ll probably have to  
require them with -r. Post the command line you are using and maybe we  
can figure it out.

Peace,  
Phillip

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [February 27, 2010, 3:50am UTC](https://www.ruby-forum.com/t/cucumber-directories-not-working/184222/3 "2010-02-27T03:50:43Z")

</div>

I figured out it was the rerun.txt file in the root directory which had  
the  
old directories from the first run. live and learn. DOH.

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [February 27, 2010, 12:23pm UTC](https://www.ruby-forum.com/t/cucumber-directories-not-working/184222/4 "2010-02-27T12:23:41Z")

</div>

Chris H. wrote:

> I figured out it was the rerun.txt file in the root directory which had  
> the  
> old directories from the first run. live and learn. DOH.

Heh. That file has been the confusion of many newcomers to Cucumber. You  
are just another a growing list of “learners”.

Peace,  
Phillip
