Test::Unit::UI::Fox::TestRunner

Hi Unit-Testing Fans,

···

–On 3-18-2002 Lyle Johnson wrote
Not your fault. The FXRuby-based test runner GUI distributed with the latest
drop of Test::Unit is not up to date with Test::Unit (that is, I think it’s
a carryover from the Lapidary code base and some of the method names, etc.
have changed). I just sent Nathaniel an updated version of the TestRunner
GUI for FXRuby on Friday and so hopefully he’ll get that integrated into an
upcoming Test::Unit release.

I just now downloaded testunit-0.14 and it bombed on me :slight_smile:
A quick look in the source showed that maybe the problem is not fixed.
I wanted to ask before digging deeper into the problem.

Is there already a newer version out there in the big, big internet?

armin@galere:/tmp/testunit-0.1.4/examples> ruby tc_adder.rb
/usr/local/lib/ruby/site_ruby/1.6/test/unit/ui/fox/testrunner.rb:118:in
reset_ui': undefined local variable or methodrunCountLabel’ for
#Test::Unit::UI::Fox::TestRunner:0x413597d0 (NameError)
from
/usr/local/lib/ruby/site_ruby/1.6/test/unit/ui/util/observable.rb:84:in

Thx,
Armin.


Armin Roehrl, http://www.approximity.com
Training, Development and Mentoring
OOP, XP, Java, Ruby, Smalltalk, Datamining, Parallel computing, Webservices

Rubybuch: http://approximity.com/rubybuch/

Agile Entwicklerkonferenz: 22. und 23.10 in Nürnberg.
http://www.approximity.com/public/conferences/AgileConf.html

Sorry I forgot to say that I added:
require 'test/unit/ui/fox/testrunner’
Test::Unit::UI::Fox::TestRunner.run(TC_Adder.suite)
to the tc_adder.rb file.

Cheers,
A

Armin Roehrl wrote:

Is there already a newer version out there in the big, big internet?

To my knowledge, there hasn’t been a new Test::Unit release since I sent
the update to Nathaniel. I will try to dig up the fixed version of the
FOX test runner that I sent to him at the time but I’m not sure I can
put my hands on it :frowning:

Have you tried the version from CVS? Look at
http://www.ruby-lang.org/~knu/cgi-bin/cvsweb.cgi/rough/lib/testunit/

There are instructions on logging into anon CVS at
http://www.ruby-lang.org/en/cvsrepo.html and you should be able to check
out a copy.

That worked for me when I wanted to see what the Fox frontend to the
REXML tests looked like.

Hope this helps,

Mike

···

In article 3D611D62.8030402@users.sourceforge.net, Lyle Johnson wrote:

Armin Roehrl wrote:

Is there already a newer version out there in the big, big internet?

To my knowledge, there hasn’t been a new Test::Unit release since I sent
the update to Nathaniel. I will try to dig up the fixed version of the
FOX test runner that I sent to him at the time but I’m not sure I can
put my hands on it :frowning:


mike@stok.co.uk | The “`Stok’ disclaimers” apply.
http://www.stok.co.uk/~mike/ | GPG PGP Key 1024D/059913DA
mike@exegenix.com | Fingerprint 0570 71CD 6790 7C28 3D60
http://www.exegenix.com/ | 75D2 9EC4 C1C0 0599 13DA

Perfect! Works like a dream!

Thanks for the tip;
Armin.

···

Am Montag, 19. August 2002 20:08 schrieben Sie:

Have you tried the version from CVS? Look at
http://www.ruby-lang.org/~knu/cgi-bin/cvsweb.cgi/rough/lib/testunit/


Armin Roehrl, http://www.approximity.com
Rubybuch: http://approximity.com/rubybuch/

Agile Entwicklerkonferenz: 22. und 23.10 in Nürnberg.
http://www.approximity.com/public/conferences/AgileConf.html