Skip to content

Incorrect marking of code as 'not executed' following merging of cov files #409

@iainfogg

Description

@iainfogg

Hi, I'm running using Robo (http://robo.li/) to run a series of Codeception unit tests which are then having the .cov files merged (using phpcov) and an HTML file produced to show code coverage - I mention all the steps in case that's relevant.

However, I'm finding that quite a few lines are being marked as 'not executed' when, depending on your perspective, they either were executed or are dead code (unless I'm misunderstanding how this should work). For example, the first brace here - also, I don't know if this is the correct marking for the closing brace.

screen shot 2015-12-02 at 13 42 37

Also, in this one, how can line 52 be not executed?

screen shot 2015-12-02 at 13 49 38

Or in this one, how can line 54 be not executed code?

screen shot 2015-12-02 at 13 50 22

My composer.lock file shows php-code-coverage at version 2.2.4, and phpcov at 2.0.2. phpUnit is at 4.8.19 and codeception is at 2.1.4.

Any ideas on what the issue is, or anything I can do to help get to the bottom of it?

Thanks, Iain

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions