From: "Aleksi Niemelä" Date: 2001-07-17T15:55:39+09:00 Subject: [ruby-talk:17967] Re: RubyUnit: A bit more general test runner > > I needed to run multiple tests in the same directory quite > > often. I name the test classes like > > > > class TestMyClass < RUNIT::TestCase > > > > and the files incorporating test classes like > > test_myclass.rb. Additionally I like to get only one report how > > the tests went. > > RubyUnit comes with a runtest.rb that can take multiple test > files as an > argument. Thanks Aaron, Didn't notice runtest.rb at all while it has been there from version 0.1.8. There're two small differences between these scripts. My version scans for the files automatically, which also means it's limited in scope when one would like to run test for multiple directories (although this should be easily cures). Additionally runtest.rb doesn't run the tests in given order but instead relies on the order ObjectSpace provides. My version doesn't honor the order either since there's no input for that, but instead runs the tests in alphabetical order. Nevertheless, these two details are such a minor features that most of the time there's no problems. Although sometimes tests should be run in certain order (the slower test is unneeded if the fast one crashes already) and then one can name the methods including some numbers like test_01_foo, test_02_bar and so on. Anyway, it's nice to notice the essential tools are already there in place. - Aleksi This transmission is intended only for the use of the individual or entity to which it is addressed. The message may contain information that is private and confidential. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any distribution, dissemination or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately by return E-mail and remove the original message. Thank You. The content of this message is not given or endorsed by HEX unless such content relates to the official business of the firm. HEX reserves the right to monitor all E-mail communications through its networks. The attachments have been scanned for viruses prior to leaving our E-mail server. HEX shall not be liable for any consequences of any virus being passed on.