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

Is it possible to exclude part of code from coverage report? #442

Open
mocheng opened this issue Aug 30, 2014 · 3 comments
Open

Is it possible to exclude part of code from coverage report? #442

mocheng opened this issue Aug 30, 2014 · 3 comments

Comments

@mocheng
Copy link

mocheng commented Aug 30, 2014

Sometimes, it would be good to exempt part of code from coverage report with comments.

Like:

// blanket: disable

Code to be exempted

// blanket: enable

@Kosta-Github
Copy link

+1 for that feature request

@alvinteh
Copy link

I have partially figured how to implement this on my end - already have a working QUnit build, but need help in finding how to pass attachComment: true option to esprima.

Anyone knows how I can do so from within the blanket source? Once that's done I can submit a PR.

@alvinteh
Copy link

Figured it out. See #460. The same changes can be applied to master (the development branch seems messy at the moment..).

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

3 participants