27 Mar
2011
27 Mar
'11
4:56 p.m.
Well, in fact DANCER_ENVIRONMENT is not use with Dancer::Test; 2011/3/27 Geistteufel <geistteufel@yahoo.fr>:
Hi, I want to switch to "testing" environment when I call "make test".
In fact generally I need 3 environments.
Production, Development and Testing.
Production, should be use directly from plackup or apache.
Development, during dev process,
And Testing, when I call "make test", it create a db test, load everything like fixture, and don't mess up development environment.
Any idea ?
I can do
DANCER_ENVIRONMENT=test perl Makefile.PL DANCER_ENVIRONMENT=test make test
But is they a better way to do this ?