Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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

by tobyink (Abbot)
on Oct 21, 2012 at 08:11 UTC ( #1000181=note: print w/replies, xml ) Need Help??

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

Yes, definitely add SQLite to your list of supported databases, and bundle a SQLite database for testing.

And don't just test SQLite if Oracle/PostgreSQL can't be tested. Test it always. Add a test_requires dependency on DBD::SQLite. If I happen to have Oracle and PostgreSQL up and running, and the appropriate environment variables set, then I'd want the test suite to run on all three databases.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^2: How to do automated tests of a database centric CPAN module
by jds17 (Pilgrim) on Oct 21, 2012 at 09:42 UTC

    I will definitely write an extension to support SQLite (as already planned) and bundle SQLite for testing, thank you for the reassurance regarding this question, tobyink.

    The tests are run against all supported databases during development, but I guess a user would target one specific DBMS. So, I think looking for environment variables specifying one database connection is enough.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000181]
[Corion]: marto: Naah, my module doesn't care, but the users of my module might expect some things to work in Chrome that only work in later builds (or, as seems to be the case, don't work there either ;) )
[Corion]: But I really wonder - I can tell Chrome to go offline, but requesting pages over the network still succeeds. But if I manually click the "offline" checkbox, that's different :-/
[LanX]: Corion can you tell WMC to check the sub version number ?
LanX has to run

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2017-12-12 20:28 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (336 votes). Check out past polls.