theory / tap-parser-sourcehandler-pgtap

TAP::Parser::SourceHandler::pgTAP
http://search.cpan.org/dist/TAP::Parser::SourceHandler::pgTAP
11 stars 13 forks source link

No documentation how how to set the password for pg_prove #25

Closed xenoterracide closed 3 years ago

xenoterracide commented 4 years ago

https://pgtap.org/documentation.html the only references to a password has nothing to do with a db password, I don't see it in pg_prove --help either. I personally would prefer either an environment variable or a cli --password (I know this is insecure, but in CI I don't really care because I'm connecting to an ephemeral database)

theory commented 4 years ago

It uses all the same interfaces as psql, and leaves authentication up to that client.

xenoterracide commented 4 years ago

sure, I figured it out but maybe it would be nice to have the section that mentioned this explicitly reference PG_PASSWORD? so that it's easier to find, as it's basically a 1 line documentation change.

xenoterracide commented 4 years ago

I guess I'm just looking for the documentation to say "password" somewhere, because it took me an hour to figure this out. I'm completely new to pgtap, and am spinning back up on postgres from not having used it, mostly, for 10 years. So this is really a request for, make it easier for newbies.

theory commented 4 years ago

That's a fair request.