ewollesen/autotest-inotify — Issue #13: autotest-inotify runs tests twice
Author: TauPan
Created: 2011-10-20 09:41:34+00:00
State: open

This is my .autotest:
{{{

# ~.autotest
require 'rubygems'
require 'autotest/inotify' # broken. this causes tests to run twice and sometimes failing tests to be ignored
require 'autotest/growl'
SPEAKING = false
DOOM_EDITION = false
BUUF = false
PENDING = false
STICKY = false
SUCCESS_SOUND = ''
FAILURE_SOUND = ''
}}}

{{{
> gem dependency autotest
Gem autotest-4.4.6
ZenTest (>= 4.4.1)
hoe (>= 2.6.0, development)
minitest (>= 1.6.0, development)
rubyforge (>= 2.0.4, development)

Gem autotest-growl-0.2.11
ZenTest (>= 0, development)
rake (>= 0, development)
rspec (>= 0, development)

Gem autotest-inotify-0.0.6
autotest (>= 4.2.4)
rb-inotify (>= 0)

Gem autotest-notification-2.3.3
autotest-standalone (~> 4.5)

Gem autotest-rails-4.1.1
ZenTest (= 4.5)
hoe (~> 2.12, development)

Gem autotest-standalone-4.5.8
}}}

I'm using the autotest-inotify gem version 0.0.6 (the current default for gem install autotest-inotify).

Every time I save a file (e.g. model or test), tests are run twice... if I comment the require line for autotest-inotify, it helps (but of course autotest without inotify uses more cpu).

(I can't reproduce the statement in the comment about "failing tests being ignored", this may have been something else (e.g. a failed attempt to use spork with TestUnit).)

Kind regards
Friede