Skip to content

coverage includes all lines (comments, import statements, etc..) #1715

Closed
@sijakret

Description

@sijakret

Hi there,

First of all: I love the modern web tooling it is so fast and straight forward!

When using the coverage reporting in web-test-runner the results I am getting seem to include lines without relevant statements (i.e. imports, comments, etc..).

Below are results from a typical karma stack for reference and the coverage results from web-test-runner are of comparatively low value here unfortunately. Do I have another problem here or is this behavior intended?

(please excuse the cropped views but i think it get's the point across.)

karma + babel + istanbul reporter
(ignores imports, comments, exported function definitions.. which is very common and desirable)
image
web test runner + chromium v8 + v8-to-istanbul
image

any tips on how to ignore the irrelevant lines ?

edit: v8 report does not seem to distinguish between statements and lines.
edit2: maybe this is just a reporter misconfiguration?
image

initially raised this here: istanbuljs/v8-to-istanbul#56 not sure where it really belongs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions