visionmedia / expresso

use mocha
http://visionmedia.github.com/expresso
759 stars 89 forks source link

FR: Setup own timeout for each serial test function #141

Open ppcano opened 13 years ago

ppcano commented 13 years ago

It could be nice if the developer could configured the tests with the TimeOut, in which the test should run. I found myself writing many different integrations tests using different setTimeout for coordinating events, where each test must be run with a possible different timeout.

Now, i can either using the makefile or use same timeout for the same all tests in a suite.

Something like the code show below, could be implemented:

module.exports = {

timeouts: { 'myowntest': 1000 },

myowntest : function ( done ) {

done();

}

};

I don't know if this approach makes sense or not. Just wanted to let my preferences due to my current expresso use.

lg