From: Stefano Taschini Date: 2006-05-03T16:41:53+09:00 Subject: Re: Unit test setup The easiest way to achieve a "global" test setup is by invoking explicitly the test runner: begin # do your setup Test::Unit::AutoRunner.run ensure # clean up end Ciao Stefano On 02/05/06, Eust�quio Rangel wrote: > Hi there. > > I noticed that when using unit testing the setup and destroy methods > works for every test executed. Is there a way for use general > "constructor" and "destructor" methods, to, for example, open a socket > on the "constructor", execute all the tests and close it on the > "destructor", executing some operations that do need to be a sequence on > the same opened socket? > > Thanks! > > -- > Posted via http://www.ruby-forum.com/. > >