From: Navya Amerineni <navyaamerineni / yahoo.com>
Subject: running unit tests in graphical mode
Date: Wed, 25 Jan 2006 14:15:01 +0900
Message-ID: <20060125051448.24567.qmail / web31313.mail.mud.yahoo.com>
> 
> require 'test/unit/ui/tk/testrunner'

require 'test/unit'

> class Roman

   (snip)

> end
> class TestRoman < Test::Unit::UI::Tk::TestRunner

class TestRoman < Test::Unit::TestCase

>     def test_simple
>         assert_equal("i", Roman.new(1).to_s)
>         assert_equal("ix", Roman.new(9).to_s)
>         assert_equal("ii", Roman.new(2).to_s)
>         assert_equal("iii", Roman.new(3).to_s)
>         assert_equal("iv", Roman.new(4).to_s)
>     end
> end

When the filename is 'test_roman.rb', 
please call "ruby test_roman.rb --runner=tk".
-- 
Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp)