[LRUG] testing a simple ruby project (no rails - just ruby)

Dafydd Rees daf at dafydd.net
Tue Feb 19 09:52:29 PST 2008


Absolutely right!

> Do your tests have the same name? Is the TestCase subclass in tc_a.rb
> different from that in tc_b.rb? I.e. does it have a different name?

Erm. Yes - I really didn't bother using different class names(!)
Used unique class names in each file and now I'm getting the counts I 
expected.

>> QUESTION 2: How can I recursively pick up and run all the tests under
>> the 'test' directory - just like it works in rails?

> .. it's the '**' that's doing the magic here.

It works. You the man!

Thanks James!

All the best,
Dafydd
-- 
Dafydd Rees
www.dafydd.net
mobile 07968 486880



More information about the Chat mailing list