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

Use both the '$$cov_*' and istanbul's default __coverage__ var to see if istanbul is running #31

Closed
wants to merge 1 commit into from

Conversation

robrich
Copy link
Contributor

@robrich robrich commented May 7, 2014

Currently it's only looking for the $$cov_ global variable to know if istanbul is running. If you use istanbul programmatically, it doesn't instantiate $$cov_ but uses the default __coverage__ var. (see https://github.com/gotwarlost/istanbul/blob/master/lib/instrumenter.js#L340) A great example of using istanbul programatically is https://www.npmjs.org/package/gulp-istanbul.

@domenic
Copy link
Collaborator

domenic commented Jun 11, 2014

Merged as 93fce63, thanks! New release coming soon.

@domenic domenic closed this Jun 11, 2014
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

Successfully merging this pull request may close these issues.

2 participants