From: Ryan Davis Date: 2009-09-17T14:18:44+09:00 Subject: Re: MiniTest On Sep 16, 2009, at 22:00 , George Thomas wrote: > Hi, > > I am relatively new to Ruby and I couldn't make MiniTest to execute > the > test. > > The code I am trying to is as follows > > # ... > The file containing the above code loads fine, but does not execute > the > test. > I am loading the file from iteractive Ruby window. > > However , if I press ^C in the interactive Ruby window (After loading > the file) , the test case starts excecuting > > Can some one point to me why the same is not working? unit tests are not run via irb. they're run from the commandline: ruby -Ilib test/test_blah.rb Both test/unit and minitest both rely on executing via the at_exit mechanism, so you're loading the tests, but they don't run until you leave irb.