Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Conversation

@DepthDeluxe
Copy link

Added support for a pretty undocumented feature of mocha. When mocha is run programmatically (i.e. mocha.run()), the function returns a runner object which has events a user can subscribe to. This can be useful for utilities such as code coverage reporting which needs to be performed after mocha tests are done in phantomjs.

See this article for a more in-depth explanation of the hooks.

Colin Heinzmann and others added 3 commits July 31, 2014 14:54
hooks for mocha events that can be executed before forwarding on a mocha
event to the grunt process
@DepthDeluxe
Copy link
Author

resolves #44. User can subscribe to the end hook to POST coverage information to a middleware service like istanbul-middleware.

@kmiyashiro
Copy link
Owner

Oops, seems I missed this one. Some test coverage would be all that's required for this to be merged! Especially since it is undocumented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants