danielstjules / mocha.parallel

Run async mocha specs in parallel
MIT License
197 stars 20 forks source link

new requirement - support this.timeout() #7

Closed mkatsoho closed 8 years ago

mkatsoho commented 8 years ago

I find out mocha.parallel does not support timeout() function, which mocha supports.

js codes:

parallel( "volumn test to read/write user profile", function(){ this.timeout(12000); // case timeout it('spec', function(done){ done(); }); })

error info:

$ mocha test/userProfile2.js /home/mk/dev/volumn-test/test/userProfile2.js:261 this.timeout(12000); // case timeout ^ TypeError: undefined is not a function

versions used:

$ npm ls mocha mocha.parallel /home/mk ├── mocha@2.2.5 └── mocha.parallel@0.11.2

danielstjules commented 8 years ago

Sorry, it's out of scope for this little hack. See https://github.com/danielstjules/mocha.parallel/issues/5#issuecomment-152943025

mkatsoho commented 8 years ago

Thanks for your updates.

danielstjules commented 8 years ago

It's now available in the latest release! :)

Edit: typo!