From: "Marshall T. Vandegrift" Date: 2006-09-07T21:32:55+09:00 Subject: Re: Abstract Tests vs AutoRunner "Phlip" writes: > Could a mixin grant test cases to two concrete classes? Alternately, > does AutoRunner have a feature to bump a suite from its list? Indeed it can: require 'test/unit' module AbstractSuite def test_foo() p derive() end end class ConcreteSuiteA < Test::Unit::TestCase include AbstractSuite def derive() return 'like this' end end class ConcreteSuiteB < Test::Unit::TestCase include AbstractSuite def derive() return 'like that' end end # >> Loaded suite - # >> Started # >> "like this" # >> ."like that" # >> . # >> Finished in 0.000816 seconds. # >> # >> 2 tests, 0 assertions, 0 failures, 0 errors If you define your shared tests in a module, you can then 'include' it in any number of suites derived from Test::Unit::TestCase. -Marshall