[Dancer-users] How to select a specific environment when I do "make test"

sawyer x xsawyerx at gmail.com
Mon Mar 28 13:12:55 CEST 2011


Hey

I looked into it, and apparently Dancer::Test *does* check for the
environment:

in file:
use Dancer::Test;
use Dancer::Config;

print Dancer::Config::setting('mykey'), "\n";
--

If I run it as:
DANCER_ENVIRONMENT=test perl -Ilib file.pl
... it does print the value of the key 'mykey' configured in test.yml inside
'environments'.

So there is no problem there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110328/8c1b2cb4/attachment.htm>


More information about the Dancer-users mailing list