Test::Unit GUI

John,

Without looking, I would guess that it’s a simple matter of replacing
“require” with “load” somewhere in the GUI code. Using load should probably
be the default anyway. Send it on as a bug to Nathaniel.

Regards,

Dan

···

-----Original Message-----
From: John Platte [mailto:john.platte@nikaconsulting.com]
Sent: Wednesday, June 18, 2003 11:34 AM
To: ruby-talk@ruby-lang.org
Subject: Test::Unit GUI

Hello,

I’m planning on doing a lot of test-driven coding soon, so
I’m scoping
out the fastest way to trigger Test::Unit runs as I code. I
got the GTK
GUI going and found that hitting the “Run” button doesn’t reload the
code, it just runs the test again.

  1. Is there an existing test-run GUI that reloads the code at
    each test
    run a la junit?

From: John Platte [mailto:john.platte@nikaconsulting.com]
Sent: Wednesday, June 18, 2003 11:34 AM
To: ruby-talk@ruby-lang.org
Subject: Test::Unit GUI

Hello,

I’m planning on doing a lot of test-driven coding soon, so I’m
scoping
out the fastest way to trigger Test::Unit runs as I code. I got the
GTK
GUI going and found that hitting the “Run” button doesn’t reload the

code, it just runs the test again.

  1. Is there an existing test-run GUI that reloads the code at each
    test
    run a la junit?

John,

Without looking, I would guess that it’s a simple matter of replacing
“require” with “load” somewhere in the GUI code. Using load should
probably
be the default anyway. Send it on as a bug to Nathaniel.

See http://www.ruby-talk.org/36342 for a bit of an explanation of why
this doesn’t exist currently. Short answer: it unfortunately involves a
lot more than just loading instead of requiring.

Sorry,

Nathaniel

<:((><

···

Berger, Daniel [mailto:djberge@qwest.com] wrote:

-----Original Message-----
EQUIP VI

Hello Nathaniel!

Have you considered to include gtk2 patch for Test::Unit written by Kenta MURATA
(muraken2@nifty.com) in your distribution?

(It was psoted on ruby-dev list.)

Sincerely,
Gour

···

nathaniel@NOSPAMtalbott.ws (nathaniel@NOSPAMtalbott.ws) wrote:


Gour
gour@mail.inet.hr
Registered Linux User #278493

Have you considered to include gtk2 patch for Test::Unit
written by Kenta MURATA
(muraken2@nifty.com) in your distribution?

I’ve applied it in CVS under rough/lib/testunit - can someone grab it
and make sure both the gtk and gtk2 test runners work? I don’t have
access to either toolkit at the moment.

Thanks,

Nathaniel

<:((><

···

Gour [mailto:gour@mail.inet.hr] wrote:

EQUIP VI

I fetched the gtk2 module from CVS and here is the result:

ggd@gaura:~/program/ruby/testunit-0.1.8/examples> ruby ts_examples.rb --gtk2
/usr/local/lib/ruby/1.8/test/unit/ui/gtk2/testrunner.rb:294: warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
/usr/local/lib/ruby/1.8/test/unit/ui/gtk2/testrunner.rb:296: warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
/usr/local/lib/ruby/1.8/test/unit/ui/gtk2/testrunner.rb:415: warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
ggd@gaura:~/program/ruby/testunit-0.1.8/examples>

Otherwise it works OK.

Sincerely,
Gour

···

Nathaniel Talbott (nathaniel@NOSPAMtalbott.ws) wrote:

I’ve applied it in CVS under rough/lib/testunit - can someone grab it
and make sure both the gtk and gtk2 test runners work? I don’t have
access to either toolkit at the moment.


Gour
gour@mail.inet.hr
Registered Linux User #278493

I fetched the gtk2 module from CVS and here is the result:

ggd@gaura:~/program/ruby/testunit-0.1.8/examples> ruby ts_examples.rb
–gtk2
/usr/local/lib/ruby/1.8/test/unit/ui/gtk2/testrunner.rb:294:
warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
/usr/local/lib/ruby/1.8/test/unit/ui/gtk2/testrunner.rb:296:
warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
/usr/local/lib/ruby/1.8/test/unit/ui/gtk2/testrunner.rb:415:
warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
ggd@gaura:~/program/ruby/testunit-0.1.8/examples>

Those appear to be warnings caused by the gtk2 extension itself, so
there’s not really anything I can do about them.

Otherwise it works OK.

Great! Were you able to check the regular GTK::TestRunner as well?

Nathaniel

<:((><

···

Gour [mailto:gour@mail.inet.hr] wrote:

EQUIP VI

First I have to install GTK, but I’ll report back.

Sincerely,
Gour

···

Nathaniel Talbott (nathaniel@NOSPAMtalbott.ws) wrote:

Great! Were you able to check the regular GTK::TestRunner as well?


Gour
gour@mail.inet.hr
Registered Linux User #278493

I just checked and it works. Clean - no warnings.

(this one is from the 1.8.0pre3 tarball, not CVS.)

Sincerely,
Gour

ps. I hope we’ll get wx version soon :slight_smile:

···

Nathaniel Talbott (nathaniel@NOSPAMtalbott.ws) wrote:

Great! Were you able to check the regular GTK::TestRunner as well?


Gour
gour@mail.inet.hr
Registered Linux User #278493

Great! Were you able to check the regular GTK::TestRunner as well?

I just checked and it works. Clean - no warnings.

(this one is from the 1.8.0pre3 tarball, not CVS.)

Excellent! Thanks for your help.

ps. I hope we’ll get wx version soon :slight_smile:

Me too - I’m really looking forward to having a Ruby binding for
wxWindows. Keep up the good work, all of ya’ll working on it!

Nathaniel

<:((><

···

Gour [mailto:gour@mail.inet.hr] wrote:

Nathaniel Talbott (nathaniel@NOSPAMtalbott.ws) wrote:
EQUIP VI