# Cucumber & RSpec with Autotest

**URL:** <https://www.ruby-forum.com/t/cucumber-rspec-with-autotest/191359>\
**Category:** Rails\
**Created:** [July 10, 2010, 7:30am UTC](https://www.ruby-forum.com/t/cucumber-rspec-with-autotest/191359 "2010-07-10T07:30:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@brianp](https://www.ruby-forum.com/u/brianp)\
**Post date:** [July 10, 2010, 7:30am UTC](https://www.ruby-forum.com/t/cucumber-rspec-with-autotest/191359/1 "2010-07-10T07:30:46Z")

</div>

Hey,

Having an issue getting RSpec to work with Cucumber and autotest.

If I run $ autotest just the rails tests run.  
If I run $ AUTOFEATURE=true autotest features and rails tests are run.  
If I run $ AUTOFEATURE=true autospec Only specs are run.  
If I run $ AUTOFEATURE=true RSPEC=true autotest Only specs are run.

So I’m getting one or the other but can’t seem to get both. Even worse  
is theres no errors so I’ve got nothing to go on. It just does one or  
the other.

I tried suggestions here to no avail:  
[http://www.claytonlz.com/index.php/2009/04/how-to-setup-rspec-cucumber-webrat-rcov-and-autotest-on-leopard/](http://www.claytonlz.com/index.php/2009/04/how-to-setup-rspec-cucumber-webrat-rcov-and-autotest-on-leopard/)

Here are my autotest/cucumber config files:  
[http://www.pastie.org/private/90oay1sieibdgixllmeq](http://www.pastie.org/private/90oay1sieibdgixllmeq)

Cheers,  
bp

---

<div class="post-metadata">

**Author:** ![brianp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@brianp](https://www.ruby-forum.com/u/brianp)\
**Post date:** [July 13, 2010, 9:18am UTC](https://www.ruby-forum.com/t/cucumber-rspec-with-autotest/191359/2 "2010-07-13T09:18:06Z")

</div>

Extremely Simple Alternative to  
AutoTest[http://bparanj.blogspot.com/2010/07/extremely-simple-alternative-to.html](http://bparanj.blogspot.com/2010/07/extremely-simple-alternative-to.html)

> **[Extremely Simple Alternative to AutoTest](https://bparanj.blogspot.com/2010/07/extremely-simple-alternative-to.html)**
>
> I am reading the Rails 3 in Action by Yehuda. To run the sample code I customized the stakeout.rb to output the results of the test when spe...

You may also want to check Directory Watcher :  
[http://codeforpeople.rubyforge.org/directory\_watcher/classes/DirectoryWatcher.html](http://codeforpeople.rubyforge.org/directory_watcher/classes/DirectoryWatcher.html)

On Fri, Jul 9, 2010 at 10:29 PM, brianp [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> is theres no errors so I’ve got nothing to go on. It just does one or  
> bp

–  
Cheers,  
Bala  
RoR Developer Now Available for Hire
