--------------030606020306040805000508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello,
I'd like to contribute a patch to test/unit/autorunner.rb that allows a
new option '--fqname', which would be the logical AND of what is today
'--testcase' with '--name'.
I have tests in files with many testcases, some of which use subclassing
or an include to repeatedly run different variations of the same test.
Right now, if the method "test_foo" is defined/included in both
FooTestCase and BarTestCase, there is no way for me to tell autorunner
to run just the "test_foo" method in the FooTestCase class. If I say
'--testcase FooTestCase', I run all methods in FooTestCase. If I say
'--name test_foo' then I run test_foo in both FooTestCase and in
BarTestCase. The proposed patch allows me to say '--fqname
FooTestCase#test_foo' and have only that single test case be run.
I'm new to the ruby community, so apologize if I'm overlooking the
correcct way to submit code like this. I didn't see any guidelines for
applying to become a committer or someone with the rights to request
write access to the CVS repository, and, judging from the email threads
on this list, the thing to do is put 'PATCH' in the subject line and
then provide the diff (attached). Hopefully this is correct, but please
let me know what I can do to help make things easier.
I'm looking forward to hearing from you.
jon
--------------030606020306040805000508
Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
name
utorunner.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename
utorunner.diff"
--- lib/test/unit/autorunner.rb.orig 2006-07-06 14:52:11.000000000 -0700
+++ lib/test/unit/autorunner.rb 2006-07-06 14:51:10.000000000 -0700
@@ -153,6 +153,26 @@ module Test
end
end
+ o.on('-q', '--fqnameモヤテチモナ」ホチヘナァャ モャ
ォ 「メ ホチヘナ ヤテ ヤナモヤテチモナ「ャ
ォ 「ヤ チホト ュュ ュュョ「ャ
ォ 「ノ ュュ ュュャ 「ャ
ォ 「 ァッァ ョ ノ 「ャ
ォ 「 ャ ョ「ャ
ォ 「ノ ャ 「ャ
ォ 「 ヤテァ 「ャ
ォ 「 ァ」ァ ョ「ゥ
ォ ・ワチッィョェゥッワレ ソ メョィ、アゥ コ ゥ
ォ
ォ メ
ォ タ シシ
ォ ィ「」ョョ゜ワ」」ョ゜「ゥ ソ コ
ォ
ォ タ シシ
ォ ィ「」ョョ゜ワ」」ョ゜「ゥ ソ コ
ォ
ォ
ォ
ョィァュァャ ァュュ ナヨナフンァャ マユヤミユヤ゜フナヨナフモャ
「モ ィ ゥョ「ャ
「ィ「 ォ ゜ィマユヤミユヤ゜フナヨナフモゥ ォ 「ゥ「ゥ
ュュュュュュュュュュュュュューウーカーカーイーウーカーエークーオーーーオークュュ