mUTTON has asked for the wisdom of the Perl Monks concerning the following question:

When developing modules how do my fellow monks do the edit-test-debug cycle? To date I have used two approaches.

  1. Put my brand spanking somewhere in @INC. Write a test script.
  2. Make a brand spanking new module with : h2xs -AXn My::Foo. Edit test.pl to contain my tests. Run : make clean; make test; After I edit my module

So how do you do it?!

Replies are listed 'Best First'.
Re: Basic module testing
by kvale (Monsignor) on Jul 18, 2002 at 19:02 UTC
    I use method one sparingly for quickie tests of things for pure perl modules. Method two is much preferred, as it creates a whole setup for installing, documenting, testing and eventually submitting to CPAN.

    -Mark

Re: Basic module testing
by chromatic (Archbishop) on Jul 18, 2002 at 19:45 UTC