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áÒuio Rangel <eustaquiorangel / yahoo.com> 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/. > >