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

Geistteufel geistteufel at yahoo.fr
Sun Mar 27 18:56:10 CEST 2011


Well, in fact DANCER_ENVIRONMENT is not use with Dancer::Test;

2011/3/27 Geistteufel <geistteufel at 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 ?
>


More information about the Dancer-users mailing list