From: Matt Armstrong Date: 2002-01-15T02:42:39+09:00 Subject: Re: RubyUnit David Corbin writes: > Matt Armstrong wrote: > >>David Corbin writes: >> >>>I'm trying to use RubyUnit. I've copied testall.rb, and >>>modified it's "suite" stuff. I've create one simple test which >>>fails. When I run "ruby testall.rb", I get the output shown >>>below: >> >>I would dump that stuff. With newer versions, you need only do >> >> require 'rubyunit' require 'yourclass' >> >> class TestYourClass < RUNIT::TestCase >> >> end >> >>Then run that file with Ruby. >> > That's fine, but what tools are available for running all the > TestCase derived classes at once? I do this in a small 'runtest.rb' script: $LOAD_PATH.unshift(".") # get our stuff first Dir['tests/test*.rb'].each {|f| require f } -- matt