Call for commentary: review of Ruby for a magazine (long, sor ry!)

  1. Biggest program here is 2k lines, used to accurately push script changes
    between the dev/test/prod environments, factoring in release/wave/database
    environment. Actually broken down into a bunch of components.

  2. The equivalent Korn shell application was approaching 8k lines. Speed is
    about the same though.

  3. Can’t use it in production, since our sysadmins don’t consider it a
    "real" language.

  4. Task automation for testing team that doesn’t understand UNIX.

  5. No GUI’s used.

  6. vi

  7. First choice for scripting, serious choice for apps but a lack of
    co-workers who know it prevent it from really being used.

  8. At Borders looking for a book to buy. Found the pickaxe book and thought
    that it looked neat.

Hi!

I am writing a peer to peer communication
(using a Recever/Forwarder pattern) that is based on tcp/ip.
How can I test it using Test::Unit in one process?
Is there any special mock class technic?

I have the same problem testing SOAP based communication.

Thanks a lot for the help!

Mauro

Hi Mauro,

I’d suggest looking at “mocking” those things. Get Test::Mock which works with
Test::Unit

http://www.ruby-lang.org/~knu/cgi-bin/cvsweb.cgi/rough/lib/testmock/

This will be part of standard Ruby in the future IIRC.


Signed,
Holden Glova

···

On Wed, 11 Sep 2002 10:14, cix wrote:

Hi!

I am writing a peer to peer communication
(using a Recever/Forwarder pattern) that is based on tcp/ip.
How can I test it using Test::Unit in one process?
Is there any special mock class technic?

I have the same problem testing SOAP based communication.

Thanks a lot for the help!

Mauro