TestResource is what you look for. Lukas
On 12 January 2011 19:13, Benoit St-Jean <[email protected]> wrote: > Is there any way to initialize a TestCase subclass *once* and set up all the > necessary stuff I need for all test cases in that subclass ? > > Let's say I want to test some socket stuff and connect only ONCE (and reuse > that socket over and over, leaving it open), how should I proceed? I don't > want to open and close the socket with #setUp and #tearDown each and every > time so a one-time initialization for the class (and a proper cleanup ) > everytime I run the test suite is what I am looking for. Suggestions? Is > there any Sunit version/fork/extension that would allow me to do that? > > Did I miss something obvious and I have exactly what I need in front on me > in my class browser right now or we can't do this with what's there now? > > If it's not there, does anyone think it would be worth we add such a feature > ? I volunteer to get it done! > > tia! > > ----------------- > Benoit St-Jean > Yahoo! Messenger: bstjean > A standpoint is an intellectual horizon of radius zero. > (Albert Einstein) > > -- Lukas Renggli www.lukas-renggli.ch
