Skip to content

No coverage reported for PHPStorm 2019.2.5 #710

Description

@remorhaz
Q A
php-code-coverage version 7.0.9
PHP version 7.3.11
Driver Xdebug
Xdebug version (if used) 2.8.0
Installation Method Composer
Usage Method PHPUnit
PHPUnit version (if used) 8.4.3

After updating from 7.0.8 to 7.0.9 PHPStorm 2109.2.5 stops showing the coverage when running tests from IDE. No errors in IDE logs, it just behaves like all the code is excluded from coverage. Downgrading to 7.0.8 solves the problem, so the cause is probably in last php-code-coverage release.

phpunit.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<phpunit
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.4/phpunit.xsd"
        forceCoversAnnotation="true"
        colors="true"
        defaultTestSuite="unit">
    <testsuites>
        <testsuite name="unit">
            <directory>tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist
                processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src/</directory>
        </whitelist>
    </filter>
</phpunit>

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions