From: Sy Ali Date: 2006-05-16T08:09:12+09:00 Subject: Re: Forcing some code to run at the end of tests On 5/15/06, Pistos Christou wrote: > I have a similar situation: I have to setup and teardown various bits in > a database before and after (respectively) [the combined whole of] ALL > tests. Furthermore, the teardown must occur regardless of whether any > tests pass or fail. I've posted to ruby-talk about this a while ago. > My final solution was to just use a wrapper script to call rake, and > then call the teardown code. > > Would the above TestRunner solution work for my case, too? I think so, yes. TestRunner was simple for me to implement, and it would guarantee that certain code could run before and after your tests.