From: "Luke St.Clair" Date: 2009-03-26T08:36:45+09:00 Subject: Re: Test::Unit - same test, different "args" On Mar 25, 4:29 pm, "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? Better yet, is there some way to get around this? Right now, I have like 8 test suite files, which do something like: initialize_things(foo) class MyTester < Test::Unit::TestCase include cases1 include cases2 end This works fine if I run the file directly, but I want a "master" test runner that would require MyTester, MyOtherTester, MyFinalTester, etc. In this case, initialize_things doesn't get called. How can I replicate this startup() functionality that I need? I do NOT want to use setup(), as it slows things down considerably.