[rspec-users] Trying to write a failing test-- but am failing!

Andrei Erdoss erdoss at gmail.com
Wed Feb 17 11:00:01 EST 2010


I also get the infinite looping of the cucumber features being run.

The way I stopped it is by adding this:

Autotest.add_hook :initialize do |at|
  %w{.svn .hg .git vendor rerun.txt}.each {|exception|
    at.add_exception(exception)
  }
end

to ~/.autotest

Is there a better to do this?

On Wed, Feb 17, 2010 at 4:13 PM, David Chelimsky <dchelimsky at gmail.com>wrote:

> On Tue, Feb 16, 2010 at 10:24 PM, patrick99e99 <patrick99e99 at gmail.com>
> wrote:
> >> What command are you running?
> >
> > I have just been doing script/autospec
> >
> > ..  I actually posted on the rspecbook forum (haven't heard anything
> > yet, so I'll ask here) regarding autospec..  When I ran it, it told me
> > that features were being skipped unless I supplied an environment
> > variable AUTOFEATURE=true...  So, I exported that variable in my
> > bashrc file, but I find that my tests automatically rerun themselves
> > every second with autofeature turned on...  So even if I am not
> > updating/saving files, the tests just keep getting executed over and
> > over..  Is there a reason for this?  When I watched BDDCasts, they
> > were using autospec with their features, and it didn't appear to
> > behave that way for them, so I was wondering.
>
> That's likely because cucumber is generating a rerun.txt file and
> autotest is picking that up for some reason.
>
>
> >
> > -patrick
> >
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
Andrei Erdoss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100217/1bc5fb79/attachment.html>


More information about the rspec-users mailing list