-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Very hard to find docs for using mocha programmatically #3140
Comments
there is an issue that was opened yesterday addressing this #3138 |
Going to close this as a duplicate of #3138, but to answer the immediate question --
It's not explicitly listed in one place, but the API is largely the same as in the browser; more generally, Mocha's options can be thought of as falling into a few groups:
...Then, there are a few different ways they can be set:
...And whereas the CLI options are (I'm not sure that's 100% bulletproof, but it covers most of the cases as far as I recall -- basically, it's less a matter of every last combination needing to be learned or memorized, and more a matter of learning which options are applicable on which levels plus how each place formats the same option.) |
@ScottFreeCode Thanks for the tips. |
|
mochajs.org and the github wiki do not have any obvious links to the mocha API for using mocha in a script.
The best I could quickly find was the wiki article "Using mocha programmatically", which only gives a short example.
Is there any docs that list the methods of the mocha object?
The text was updated successfully, but these errors were encountered: