Hi,

In <e26f7206bba0946cf6b01ddca66d10d9 / ruby-forum.com>
  "Test Unit setup teardown problem" on Thu, 28 Jul 2011 17:39:30 +0900,
  Gaurang Shah <shahgomji / gmail.com> wrote:

> I am using Test::Unit framework for website testing. It has setup and
> teardown methods. The thing is it is called before and after each and
> every test methods.
> 
> is there any way we can call setup method before first test gets execute
> and teardown method after last test executes rather than before and
> after each and every test???

You can use startup and shutdown class methods for it:
  http://test-unit.rubyforge.org/test-unit/Test/Unit/TestCase.html


Thanks,
--
kou