Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mocha options not working? #208

Closed
calidion opened this issue Dec 15, 2015 · 4 comments
Closed

mocha options not working? #208

calidion opened this issue Dec 15, 2015 · 4 comments

Comments

@calidion
Copy link

I use the current new version generator,
inside test directory, i place the mocha.opts file as follows.

--reporter list
--ui bdd
--timeout 100000

but i still got the error:

Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.

how to enable mocha options?

@calidion
Copy link
Author

#207
1.enabled mocha.opts
2.throw err where execution can not be continued and test coverage is not accurate .
thanks.

@SBoudrias
Copy link
Member

As you saw, pass the option in the gulp task.

If you feel we're missing some options that should be there by default, please send a PR.

@SBoudrias
Copy link
Member

Also, you can see the request on the gulp-mocha project sindresorhus/gulp-mocha#44

@calidion
Copy link
Author

@SBoudrias
do u mean i should remove the error thrown code ? and file a new PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants