From: Nathaniel Talbott Date: 2002-03-20T08:44:23+09:00 Subject: RE: another Test::Unit question Pat Eyler [mailto:pate@eylerfamily.org] wrote: > Okay, so I'm moving along doing unit testing to build a small > application test-first. I'd like to use the Gtk UI, but I > can't quite figure out how to get it working. In my test > suite file I have: OK, first of all, the GTK UI was very broken in the last release. I just committed a fix to CVS that you'll need for it to work at all. > require 'test/unit' > require 'test/unit/ui/gtk/testrunner' > require 'tc_mailgen_conf' > require 'tc_mailgen' > > if __FILE__ == $0 > Test::Unit::UI::Gtk::TestRunner.run(Test::Unit::TS_TestUnit) Test::Unit::UI::GTK::TestRunner.run() ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > end See if that fixes your problem. Note that you'll have to create your suite own suite; it won't be done automagically for you if you manually run the tests like this. Hmmm... an easy way to specify the runner used by the at_exit trick would almost eliminate the need to ever create one's own suite, as well as getting rid of all valid excuses for the __FILE__ == $0 junk. Added to the TODO. Have fun testing, Nathaniel <:((>< + - - | RoleModel Software, Inc. | EQUIP VI