From: Thomas Preymesser Date: 2008-01-25T02:42:03+09:00 Subject: Re: Scripts run using load in "for" loop run out of order ------=_Part_31966_13432768.1201196528361 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 24/01/2008, Fa Sidd wrote: > > zetetic wrote: > > > > testList =3D %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 replace your "load(testList[i])"-line with "`ruby #{testList[i]}`" -Thomas --=20 Thomas Preymesser thopre@gmail.com thomas@thopre.com B=FCro: 030 - 830 353 88 mobil: 0176 - 75 03 03 04 Privat: 030 - 49 78 37 06 http://thopre.wordpress.com/ http://www.thopre.com/ ------=_Part_31966_13432768.1201196528361--