snapframework/snap — pull request #40 by adinapoli (2012-09-18 12:56:55+00:00)
Title: [0.10] Polished App.hs, Blackbox/Tests.hs, created Snaplet.Test stub

Hi there, I've

a) Polished Blackbox/Tests.hs to match the todo, now is cleaner and every function appears in the same visual context of siblings (ala Clean Code by Martin)

b) Polished a bit App.hs, moved the Snaplet at the top of the file

c) Created the stub of the testing module. The module is in Snap.Snaplet.Test and tries to mirror as much as possible conventions and functions from Snap.Test.

d) Added Snap.Snaplet.Test to snap.cabal, therefore now snap depends from HUnit (is it a good thing?)

Feedback? :)

ps. I don't expect the Test module to be even reasonable, it's just in the middle of a brainstorming project. I also spot a possible refactor of functions inside Blackbox/Tests.hs to be included in Snaplet.Test, am I wrong?

Bye,
A.