Suppose there are potentially costly operations in setup or teardown that are the same for all tests and whose results will not be confused during test runs. It seems to me wrong that they run before / after each test.
So, is there a preferred way to run the install / break code only before the first test is done and only after the last test is done?
Change In the specific case, I should check some extensions for Net :: FTP and thus establish an FTP connection and configure some remote objects for testing:
class TestFTPExtensions < Test::Unit::TestCase def setup
source share