snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

New testsuite #113

Closed imalsogreg closed 10 years ago

imalsogreg commented 10 years ago

Checking in some tests.

I've still got a bunch of work to do, but thought I might check in now, mainly to provide the test that hits this issue about hanging and memory leak on readRequestBody.

Running test suite works best after the sequence:

cabal clean
cabal sandbox init
cabal sandbox add-sources [all the dependencies]
cabal configure --enable-tests --enable-library-coverage
cabal build
cabal install --enable-tests
./runTestsAndCoverage.sh

After changing test code (or anything in the EXCLUDES list of runTestsAndCoverage.sh), it's enough to just

cabal build
./runTestsAndCoverage

But changing any src file means doing everything from cabal clean onward again.

mightybyte commented 10 years ago

This is great. Thanks a lot!