A
Ara Vartanian
Does anyone know of a way of performing one-time setup and teardown per Tes=
t::Unit::TestCase?=0A=0AI have an integration test with an external compone=
nt where, unfortunately, mocking out a server response is not feasible. So =
I need to mount a servlet to interact with my test. It would be pointless a=
nd slow to do this once for every test method. I know other unit testing fr=
ameworks define such callbacks. Does Test::Unit? If not, is there a clever =
way of getting around it? =0A=0AI am using Rails's 'test/helper', so I'm no=
t instantiating my own test harness. Obviously, I can setup any needed res=
ources in the class scope of the unit test itself, BUT that still doesn't g=
ive me a callback for teardown.=0A=0AAny ideas?=0A=0AThanks for your help.=
=0A=0A-- Ara Vartanian=0A=0A=0A=0A=0A =0A__________________________________=
__________________________________________________=0AYahoo! Music Unlimited=
=0AAccess over 1 million songs.=0Ahttp://music.yahoo.com/unlimited
t::Unit::TestCase?=0A=0AI have an integration test with an external compone=
nt where, unfortunately, mocking out a server response is not feasible. So =
I need to mount a servlet to interact with my test. It would be pointless a=
nd slow to do this once for every test method. I know other unit testing fr=
ameworks define such callbacks. Does Test::Unit? If not, is there a clever =
way of getting around it? =0A=0AI am using Rails's 'test/helper', so I'm no=
t instantiating my own test harness. Obviously, I can setup any needed res=
ources in the class scope of the unit test itself, BUT that still doesn't g=
ive me a callback for teardown.=0A=0AAny ideas?=0A=0AThanks for your help.=
=0A=0A-- Ara Vartanian=0A=0A=0A=0A=0A =0A__________________________________=
__________________________________________________=0AYahoo! Music Unlimited=
=0AAccess over 1 million songs.=0Ahttp://music.yahoo.com/unlimited