Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: SQL configurations in automated testing

by jbert (Priest)
on Nov 21, 2007 at 20:22 UTC ( [id://652228]=note: print w/replies, xml ) Need Help??


in reply to SQL configurations in automated testing

Rather than failing, you could 'skip' the various backend tests (with reason) if they aren't available.

You could also do the same with the whole test script if you haven't been configured got a valid config file.

The skip reason could be a pointer to the README, describing how to configure the tests.

Alternatively, if you do want to access a live db which hasn't been explicitly configured in, then please make sure you use table names which are very likely not to be in use already.

Actually, if you're going the non-configured route, it might be better to abort your test script if your chosen database already exists at start time, to avoid stomping on any data. Then create/drop it during your script(s).

  • Comment on Re: SQL configurations in automated testing

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-24 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found