------ art_11562_3509627.1157615133202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/7/06, Phlip <phlipcpp / yahoo.com> wrote: > Could a mixin grant test cases to two concrete classes? Alternately, does > AutoRunner have a feature to bump a suite from its list? Once TestCase is a class you cannot mix it in easily (or at least I think so). The reverse appproach would be much easier (to mix in your common behaviour) AutoRunner has command line parameter -t that allows to exclude test case classes by a regex (-v /Abstract/). Another possibility is to extend AutoRunner to not load a TestClass that has any subclasses. class Class def has_subclasses? ObjectSpace.each_object(Class) { |c| return true if self > c } end end Look for @filters in the AutoRunner code. You could copy the behaviour in -n and -t to add another parameter (e.g. --leaves-only) that will add to @filters << Proc {|t| t (attached patch will do that) Maybe you can even force the -t parameter ------ art_11562_3509627.1157615133202 Content-Type: text/x-patch; name=autorunner.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_ersu5pfw Content-Disposition: attachment; filename="autorunner.patch" LS0tIGF1dG9ydW5uZXIucmIub3JpZwkyMDA1LTAyLTE3IDAzOjU2OjQ2LjAwMDAwMDAwMCArMDEw MAorKysgYXV0b3J1bm5lci5yYgkyMDA2LTA5LTA3IDA5OjQyOjE4LjAwMDAwMDAwMCArMDIwMApA QCAtMiw2ICsyLDEyIEBACiByZXF1aXJlICd0ZXN0L3VuaXQvdWkvdGVzdHJ1bm5lcnV0aWxpdGll cycKIHJlcXVpcmUgJ29wdHBhcnNlJwogCitjbGFzcyBDbGFzcyAKKyAgICBkZWYgaGFzX3N1YmNs YXNzZXM/CisJT2JqZWN0U3BhY2UuZWFjaF9vYmplY3QoQ2xhc3MpIHsgfGN8IHJldHVybiB0cnVl IGlmIHNlbGYgPiBjIH0KKyAgICBlbmQKK2VuZAorCiBtb2R1bGUgVGVzdAogICBtb2R1bGUgVW5p dAogICAgIGNsYXNzIEF1dG9SdW5uZXIKQEAgLTE1Myw2ICsxNTksMTIgQEAKICAgICAgICAgICAg IGVuZAogICAgICAgICAgIGVuZAogCisgICAgICAgICAgby5vbignLWwnLCAnLS1sZWF2ZXMtb25s eScsCisgICAgICAgICAgICAgICAiUnVucyB0ZXN0cyBpbiBUZXN0Q2FzZXMgdGhhdCBoYXZlIG5v IHN1YmNsYXNzZXMiCisgICAgICAgICAgICAgICApIGRvIHxufAorICAgICAgICAgICAgICBAZmls dGVycyA8PCBwcm9je3x0fCB0LmNsYXNzLmhhc19zdWJjbGFzc2VzPyB9CisgICAgICAgICAgZW5k CisKICAgICAgICAgICBvLm9uKCctdicsICctLXZlcmJvc2U9W0xFVkVMXScsIE9VVFBVVF9MRVZF TFMsCiAgICAgICAgICAgICAgICAiU2V0IHRoZSBvdXRwdXQgbGV2ZWwgKGRlZmF1bHQgaXMgdmVy Ym9zZSkuIiwKICAgICAgICAgICAgICAgICIoIiArIGtleXdvcmRfZGlzcGxheShPVVRQVVRfTEVW RUxTKSArICIpIikgZG8gfGx8Cg ------ art_11562_3509627.1157615133202--