From: Kouhei Sutou Date: 2009-03-26T21:31:45+09:00 Subject: Re: Test::Unit - same test, different "args" Hi, In <55f56345-3524-40d0-8a9a-85bef4448ae7@d7g2000prl.googlegroups.com> "Re: Test::Unit - same test, different "args"" on Thu, 26 Mar 2009 08:26:47 +0900, "Luke St.Clair" wrote: > On Mar 24, 12:39 pm, "Luke St.Clair" wrote: > >> I think this is what I'm going to go with - I'll have a test case for >> each possible param value (there are about 10), and each one will set >> a few additional global variables.  Then, each test case will include >> the same module, which will call functions with params set by the >> global variables. > > The biggest issue I'm running into right now is not having startup(), > or code that runs once per test suite, not once per test case. > > Is this in test::unit yet? Type 'sudo gem install test-unit'. Test::Unit 2.x supports it: http://test-unit.rubyforge.org/test-unit/classes/Test/Unit/TestCase.html Thanks, -- kou