From: "Suraj N. Kurapati" Date: 2006-05-14T10:32:54+09:00 Subject: Re: Forcing some code to run at the end of tests -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sy Ali wrote: > On 5/13/06, Mike Stok wrote: >> Does every test mean every test case? If so you might look at >> Test::Unit::TestCase's teardown. > > No, not teardown.. I want to have some code executed after all testing > has concluded. > > You'd think it'd be a matter of running it all at the end of the .rb > file, but this is not true.. everything is run and _then_ the test > cases are run. > > I suppose I could wrap the entire test in another ruby file.. it just > seems strange to need to do this. > Try Kernel#at_exit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEZoigmV9O7RYnKMcRAnGqAKCzdsd8ZRGFFylu8PLWePZ/O7JwlQCfd1it EZm2Css1MI1cLunv3M3kOCc= =Mh2m -----END PGP SIGNATURE-----