Skip to content

Allow ignoring lines #27

Description

@phihag

Sometimes, I'm aware that a certain line is not going to be covered (say, because it's related to another platform. For example, when I run my test under node.js, browser-specific branches are not going to be touched).

There should be an option to ignore those lines (so that I can still automatically require 100% coverage). It could look like this:

if (!require) {
    XMLSerializer = window.XMLSerializer; // pragma: ignore
}

In the HTML output, the ignored lines could be marked with a light yellow hint.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions