Test::Unit::AutoRunner to_run what files?

T

Trans

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.
 
R

Ryan Leavengood

TESTDIR =3D 'test'

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

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

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
 
T

Trans

Ryan said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,181
Messages
2,570,970
Members
47,537
Latest member
BellCorone

Latest Threads

Top