Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Writing tests for modules using database handles

by bikeNomad (Priest)
on Aug 02, 2001 at 04:45 UTC ( #101550=note: print w/replies, xml ) Need Help??

in reply to Writing tests for modules using database handles

Your test script could require a database handle to be set in a config file (and, of course, print a message if it isn't). The handle could be passed to the Makefile, as well. Look at the way that the various DBD modules do their testing. Isn't there a test database in the standard MySQL installation? That could be your default.

The Device::SerialPort module does tests on a live serial port; if opening it fails, it prints out a message about how to change the configuration by editing a file.

  • Comment on Re: Writing tests for modules using database handles

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2021-05-13 05:13 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (134 votes). Check out past polls.