From: Jano Svitok Date: 2008-03-13T15:54:45+09:00 Subject: Re: bug in Test Unit? On Thu, Mar 13, 2008 at 4:33 AM, Nasir Khan wrote: > Well, if you see a few lines above that in unit.rb > > module Unit > # If set to false Test::Unit will not automatically run at exit. > def self.run=(flag) > @run = flag > end > > Now to me this reads as if you set the flag to true the tests will run on > exit and if set to false the tests will not run on exit. > > This is obviously not what will happen when > > at_exit do > unless $! || Test::Unit.run? > exit Test::Unit::AutoRunner.run > end > end > > is executed, but the exact opposite. > > Nasir This was reported by Slavomir Hudak as rubyforge bug #18041 -- Unit tests auto-run bug My solution was to change the comment from "set to false" to "set to true" ;-) http://rubyforge.org/tracker/index.php?func=detail&aid=18041&group_id=426&atid=1698 J.