How do I register a custom runner for Test::Unit?

E

Eric Promislow

Three years ago in http://tinyurl.com/2xkvrl
(http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/
5df4ed2c27d59326/d69077b7759fe4bf?hl=en&lnk=st&q=ruby+test+custom
+runner+group%3Acomp.lang.ruby#d69077b7759fe4bf)
someone asked Nathaniel how he could register his custom test runner
without hacking the list of RUNNERS in test/unit/autorunner.rb

Nathaniel's answer was to use an explicit call, as in:

MyRunner.run(MySuite)

This still seems to be the case. I would like to invoke rake with the
TESTOPTS env var pointing to my custom runner. Is there a way to get
around both having my customers manually hack autorunner.rb (or
supplying them with a script to do that, which is probably no better),
while still using Rake's ability to discover the tests, build the test
suite, fire the runner, and return the results?

I'm trying to avoid reinventing as many wheels as possible here.

Thanks,
Eric Promislow
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top