Istanbul: Couldn't find the difference between line and statement coverage?

Created on 17 Jul 2015  路  1Comment  路  Source: gotwarlost/istanbul

coveragereport

The result for both line and statement coverage comes always same. I didn't find any appropriate answer for this question.

If both are same, then is there any option to get only one ether line or coverage to avoid the confusion?

Most helpful comment

It can only be different of you have more than one statement on one line. Statement coverage is a more accurate indicator of coverage - line coverage is to support existing coverage tools that rely on line level info

>All comments

It can only be different of you have more than one statement on one line. Statement coverage is a more accurate indicator of coverage - line coverage is to support existing coverage tools that rely on line level info

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ouhouhsami picture ouhouhsami  路  16Comments

gbahamondezc picture gbahamondezc  路  24Comments

attodorov picture attodorov  路  33Comments

asciidisco picture asciidisco  路  47Comments

graemej picture graemej  路  22Comments