I\'ve just added shouldjs and mocha to my express app for testing, but I\'m wondering how to test my application. I would like to do it like this:
app = requ
mocha comes with before, beforeEach, after, and afterEach for bdd testing. In this case you should use before in your describe call.
describe 'routes' -> before (done) -> app.listen(3000) app.on('connection', done)