hydrojs/hydro — pull request #15 by jkroso (2014-01-02 13:47:38+00:00)
Title: hooks concept

I'm just thinking about how hooks should be implemented. Looking at mocha they treat hooks like tests more or less which is a nice concept but I think they might loose some flexibility because of it. They only allow "beforeAll/afterAll" "beforeEach/afterEach" within each suite. I think it would be nice to be able to add hooks to individual tests if you want. The approach I've taken here does put a bit of a burden on the interfaces though (hydro-bdd, hydro-tdd, etc..). Thoughts?