sure, check below,
see I have cases like:

TC1 = { name=>"touch", setup => "mkdir1 ", test_step1=>"touch file",
test_step2=>"cat file", teardown => "rm dir 1"}
TC2 = { name=>"echo" setup => "mkdir 2", test_step1=>"echo 1 > file",
test_step2=>"cat file", teardown => "rm dir 2"}

Can I use a case_reader or case_generator to generate 2 testcases for
the above data?

thx
JarodZZ

On Fri, Jun 6, 2008 at 2:33 PM, Robert Klemme
<shortcutter / googlemail.com> wrote:
> On 06.06.2008 03:40, salamond wrote:
>>
>> I'm using this method in UnitTest.
>> Have you guys wondered, why Ruby Unit Test can't do something like this:
>>
>> class Test_${name} {
>>    def setup {}
>>    def test_${step1} {}
>>    def test_${step2} {}
>>    def teardown {}
>> }
>>
>> most of my unit test cases are like something above, and I want to
>> express all cases in data,
>> automatically generate cases in the run time
>>
>> Do u think it's possible?
>
> A lot is possible.  But from what you write it is not clear what "it" in
> this case is.  Can you be more concrete?
>
> Kind regards
>
>        robert
>
>