From: Fa Sidd Date: 2008-01-25T02:00:39+09:00 Subject: Re: Scripts run using load in "for" loop run out of order zetetic wrote: > > testList = %w(Tests/A-test.rb Tests/B-test.rb Tests/C-test.rb Tests/ > D-test.rb) > testList.each {|testfile| load "#{testfile}"} > [TC_Four,TC_Three,TC_One,TC_Two,].each {|test| > Test::Unit::UI::Console::TestRunner.run(test) } > > This loads all the test classes first, then executes them in the order > you specify. Change the order of the classes in the second line if you > want to change the order of the tests. I get the list of tests scripts from the test harness and do not know the class names and execution order in advance. Is there a better way to my tests, if I had just a list of test scripts in order of execution -- Posted via http://www.ruby-forum.com/.