Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Organizing Module Tests Sensibly

by water (Deacon)
on Jun 25, 2004 at 17:28 UTC ( [id://369679]=note: print w/replies, xml ) Need Help??


in reply to Organizing Module Tests Sensibly

Totally agree with chromatic. Keep the tests in the same directories as the modules -- makes it easier to keep them up-to-date. While File::Find is a good wrapper for a programmatic smoke suite, the "prove" command (from T::Harness? Or is it from T::More? I forget) is great for running the suite from the command line, often, and flexibly.

More testing = less bugs = less work = more happiness

water

Replies are listed 'Best First'.
Re^2: Organizing Module Tests Sensibly
by skyknight (Hermit) on Jun 25, 2004 at 17:46 UTC
    Keep the tests in the same directories as the modules -- makes it easier to keep them up-to-date.

    That's what I've been doing thus far. I wasn't sure whether that was considered a good practice for CPAN modules. If it is in fact deemed acceptable, I'm more than happy to continue on this way.

    More testing = less bugs = less work = more happiness

    I couldn't agree more. I've been testing this module that I'm currently writing a ton along the way, and it's made it a much more pleasurable experience. It's a great feeling to perform a major refactoring of feature addition, and to run a huge battery of tests and see them all give you the green light.

    I guess now what it all boils down to is whether to stick with Test::Unit, or to jump over to Test::More. Test::Unit is pretty cool, but I'm concerned about it not being very well supported by the authors. The test scripts for the install break, and it hasn't been updated I think since 2001, at which point they were promising better docs. Alas, no such thing has been forthcoming and they have gone silent.

      Let's see: Test::Unit needs development help, you need Test::Unit... sounds like a match made in heaven! :-) (Isn't this how modules survive past their originators?)

      Chris
      M-x auto-bs-mode

        That's not a bad idea, though I know nothing about how one goes about taking over what has obviously become an abandoned project. Furthermore, while I'd personally say that two years without any development constitutes an abandoned project, that doesn't necessarily mean that they will agree. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://369679]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found