From: Henrik Horneber Date: 2004-11-16T00:55:17+09:00 Subject: Re: Starter question on Test::Unit > > > If I run the above script without any option, would #setup be executed twice, once for #test_run and once for #test_rerun. Just to be nitpicky, you would get errors about Foo not being defined ... :) I guess you meant: require "test/unit" class TestClass < Test::Unit::TestCase def setup puts "in setup" end def test_run assert_equal(true, true) end def test_rerun assert_equal(true, true) end end outputs: >ruby test_setup.rb Loaded suite test_setup Started in setup .in setup . Finished in 0.0 seconds. 2 tests, 2 assertions, 0 failures, 0 errors >Exit code: 0 Does that answer your question? :) regards, Henrik