Test::Unit::AutoRunner to_run what files?

TESTDIR = 'test'

runner = Test::Unit::AutoRunner.new(true)
runner.to_run << TESTDIR
runner.run

Will this try to run EVERY file in test/ dir as a test?

Thanks,
T.

No, it will require every file and then traverse the ObjectSpace for
TestCase classes. You can add filters and excludes to the AutoRunner
if there are certain things you definitely don't want to be required.

Ryan

ยทยทยท

On 10/23/05, Trans <transfire@gmail.com> wrote:

TESTDIR = 'test'

runner = Test::Unit::AutoRunner.new(true)
runner.to_run << TESTDIR
runner.run

Will this try to run EVERY file in test/ dir as a test?

Ryan Leavengood wrote:

No, it will require every file and then traverse the ObjectSpace for
TestCase classes. You can add filters and excludes to the AutoRunner
if there are certain things you definitely don't want to be required.

Got it. Thanks.

T.