From: "Berger, Daniel" Date: 2008-03-05T08:35:13+09:00 Subject: Re: Adding startup and shutdown to Test::Unit > -----Original Message----- > From: Farrel Lifson [mailto:farrel.lifson@gmail.com] > Sent: Tuesday, March 04, 2008 4:21 PM > To: ruby-core@ruby-lang.org > Subject: Re: Adding startup and shutdown to Test::Unit > > On 05/03/2008, Daniel Berger wrote: > > Here are two patches that add startup and shutdown methods to > > Test::Unit. Unlike setup and teardown, they run once per > test suite, > > not per test. > > Would it not be better to have a startup and shutdown method > for each test case rather than the suite as a whole? This is where Nathaniel's terminology gets confusing. It is actually once for each test case, i.e. for all test methods within a given subclass of Test::Unit::TestCase. Internally, all the test methods within a test case form a TestSuite. Anyway, the example I provided should make it clear what it's doing. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.