From: Nathaniel Talbott Date: 2003-12-02T02:09:55+09:00 Subject: Re: how do I create a TestSuite On Dec 1, 2003, at 10:26, Rasputin wrote: > This code used to work under 1.6.8 with Test::Unit 0.1.8: Are you sure? I don't think creating a TestCase without a test to run has ever worked. I think what you want is: > 0rasputin@lb:stickyfingers$ cat test/all.rb > #! /usr/local/bin/ruby -w > > require 'test/unit' > > require 'test/chaintest' > require 'test/chunkertest' > require 'test/filestoretest' > > class Daddy < Test::Unit::TestSuite > self << ChainTest.new > self << ChunkerTest.new > self << FilestoreTest.new self << ChainTest.suite self << ChunkerTest.suite self << FilestoreTest.suite > end > It now gives errors under CVS Ruby - looks like a change in the > TestCase > constructor. How do I create a testsuite now? As I said, I don't think the code above would have ever worked. You might like to know, though, that you don't have to create your own TestSuite; try this: #! /usr/local/bin/ruby -w require 'test/unit' require 'test/chaintest' require 'test/chunkertest' require 'test/filestoretest' I think you'll find that's all you need. HTH, Nathaniel <:((><