Greg Sabino Mullane writes: > > ... I suppose it could also be somewhat easy to try out a few series > > of basic/default credentials on localhost for engines like MySQL and > > Postgres, and try to setup a test database from there. > > That sounds more interesting.
It sounds scary to me. If I'm just installing a Perl module from Cpan on a newly installed OS, which happens to still have default DB connection permissions, I wouldn't expect the module's tests to start making use of the DB without asking. Further, if the module install fails the database may be left behind. Which is going to be very surprising when I then connect to the DBMS and see there's already this weird database there. (Similarly, if a test needs an image, please don't just search users' home directories for one; if a test needs to send an e-mail, don't just look in the user's address book for somebody to mail. Just cos a test is running as a user which has permission to do certain things outside the current directory doesn't mean it's reasonable for a test to do so.) Simon