From: Tom Cloyd Date: 2009-03-27T13:02:52+09:00 Subject: Re: unit testing with ruby1.9.x john maclean wrote: > Built ruby from a recent svn. Builds fine and works. > > ruby19jx --version > ruby 1.9.2dev (2009-03-18) [i686-linux] > > Now for some unit testing; > > gem install 'test-unit' --remote > > run a test on some code; > > ruby19jx proj/code/rb/projects/virt/vz/test/test_vz001.rb > ruby 1.9.2dev (2009-03-18) [i686-linux] > /home/jayeola/ix/lib/ruby19jx/gems/1.9.1/gems/test-unit-2.0.2/lib/test/unit/autorunner.rb:1: > warning: loading in progress, circular require considered harmful - > /home/j\ > ayeola/ix/lib/ruby19jx/gems/1.9.1/gems/test-unit-2.0.2/lib/test/unit.rb > FE > > the autorunner? Am I to `require unit/test2.x` or something? > > > At the risk of stating what is obvious to some and may not be to all, minitest is now the default testing library supplied with 1.9, replacing the previously supplied Test::Unit library. I am informed that there one can easily obtain the same functionality with minitest - but I know essentially nothing about this, and there seems to be no documentation, outside of discussion in various books which take up Ruby 1.9. The library author has said that the code is easy enough to read that that is good documentation. Hope this helps. Tom -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << tc@tomcloyd.com >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~