NAME

Module::Install::TestVars - Passing variables before running tests

SYNOPSIS

use inc::Module::Install;

test_vars
  TEST_DBI_DSN      => 'dbi:mysql:dbname=test',
  TEST_DBI_USER     => 'root',
  TEST_DBI_PASSWORD => '',

In your test,

use Test::More tests => 1;

diag($ENV{TEST_DBI_DSN});      # 'dbi:mysql:dbname=test'
diag($ENV{TEST_DBI_USER});     # 'root'
diag($ENV{TEST_DBI_PASSWORD}); # ''

ok(1);

DESCRIPTION

Module::Install::TestVars is module fetching test setting variables via %ENV vars.

METHODS

test_vars %vars

key-value.

AUTHOR

Toru Yamaguchi <zigorou@cpan.org>

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.