Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to do automated tests of a database centric CPAN module

by sundialsvc4 (Abbot)
on Oct 22, 2012 at 13:17 UTC ( #1000335=note: print w/ replies, xml ) Need Help??


in reply to How to do automated tests of a database centric CPAN module

There are two distinct things that you need to test:   first, the ability to connect to a database of the expected type; second, the ability to interact with the database and to demonstrate that the correct set of changes are applied to it.   The latter situation, I think, is likely to be “particular to the (usually...) known target type of database” that I personally would be less than willing to substitute another one.   Normally, I set up a testing-only database that is used only for automated tests, and the first step of that script is to run an external command that first drops and then reloads the database with known initial content.   Sometimes that script is re-run several times.   (In one commercial situation, we set up the first test to run an md5sum against the source-data script itself to guard against innocent but undocumented out-of-process changes to its “known” content.)


Comment on Re: How to do automated tests of a database centric CPAN module

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-12-26 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (167 votes), past polls