昔は違った気がするのですが、手元の環境のautotest(ZenTest-3.10.0)とRSpec-1.1.4を使った状態で、テスト中に一度例外が発生した後に、全てのテストをgreenにすると、全てのテストがもう一回全部実行されるという現象が起きています。

全部テストを実行するのは大変なので、とりあえず、.autotest
でパッチを当てて回避しました。

ruby>>
class Autotest
alias_method :handle_results_old, :handle_results
undef_method :handle_results

def handle_results(results)
failed = results.scan(self.failed_results_re)
completed = results =~ self.completed_re

self.files_to_test = consolidate_failures failed if completed

color = completed && self.files_to_test.empty? ? :green : :red
hook color unless $TESTING

#self.tainted = true unless self.files_to_test.empty?
self.tainted = !self.files_to_test.empty?

end
end
<<--

L14-15行目が修正箇所です。

posted by genki genki on Sun 6 Jul 2008 at 11:41 with 0 comments