From: "bpettichord@..." Date: 2006-05-22T11:45:59+09:00 Subject: Test::Unit Patch that allows test methods to be executed sequentially This patch to Test::Unit allows you to create TestCases whose test methods will be executed in the order you've defined them, rather than alphabetically, which is what Test::Unit does today. http://wiki.openqa.org/display/WTR/Test-Unit+Patch Thus the foloowing TestCase will print "EFGH": class TC2_Sequential < Test::Unit::TestCase execute :sequentially def test_b; print 'E'; end def test_a; print 'F'; end def test_d; print 'G'; end def test_c; print 'H'; end end I realize that there has been some controversy in the past about whether is a good idea or not. This debate has hinged on issues about proper unit testing. However, with Watir (http://wtr.rubyforge.org), many people are now using Test::Unit for system acceptance testing, which presents a different context for the value of ordering tests. My hope is that some people will find this to be useful. My thanks go to Why's MetaClass article, which gave me the info i needed to create this. Bret