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

Geistteufel geistteufel at yahoo.fr
Sun Mar 27 18:53:08 CEST 2011


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 ?


More information about the Dancer-users mailing list