On Mon, 15 May 2006, Sy Ali wrote: > On 5/14/06, ara.t.howard / noaa.gov <ara.t.howard / noaa.gov> wrote: >> i'ts simple : they are run in alphabetical order. so, if you name them >> >> test_000 >> test_001 >> test_002 >> ... >> >> they are run in 'order'. > > > I wouldn't want to put my non-test code in a test.. it seems wierd. well, if you have non-test code you can do whatever you like to order it class FooBarTest < Test::Unit::TestCase def self.call_it end p 'do_this' p 'do_that' call_it end etc. > As I understand, tests are not guaranteed to run in any order and while this > feature may work right now.. it may be removed in the future. http://groups.google.com/group/comp.lang.ruby/tree/browse_frm/thread/b1c0410a7a230f62/85da1271088c609d?rnum=11&q=test+unit+order+noaa&_done=%2Fgroup%2Fcomp.lang.ruby%2Fbrowse_frm%2Fthread%2Fb1c0410a7a230f62%2F643c7de96374c3ed%3Fq%3Dtest+unit+order+noaa%26rnum%3D1%26#doc_ff84696d7878f61b where did you hear it might be removed in the future? regards. -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama