theory / tap-parser-sourcehandler-pgtap

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

Substitute environment variables used as options #15

Closed ylavoie closed 7 years ago

ylavoie commented 7 years ago

Environment variables should be useable as parameters for options. Example: EXPORT my_database=TEST prove --source Perl --ext=.t --ext=.pg --source pgTAP --pgtap-option dbname=${my_database} --pgtap-option username=postgres --pgtap-option suffix=.pg

rodo commented 7 years ago

pgtap will use libpq to connect so you can already use the var defined by default, more documentation at https://www.postgresql.org/docs/current/static/libpq-envars.html