Hi Greg and Yesodweb,
I chatted to Michael about this on #yesod and he thought it was a good
idea, but that I should solicit input from Greg.
Currently for DefaultEnv we have; Development, Testing, Staging and
Production. I would like to see the addition of one more; Testsuite.
Once used of the Testsuite environment would be for a database that
gets dropped at the start of each run of the testsuite. The developer
would do his in-development testing with the Development database
(which he/she may keep around for days or even weeks) but each time
he/she runs 'cabal test' the tests can drop the table before running
the tests to make sure that all DB tests operate on a DB in a known
state.
Obviously, I can roll my own replacement for DefaultEnv, but I thought
this is something that would be more widely useful.
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/