Skip to content

Spread the word about fast code coverage via "pcov" extension #5531

@splinter89

Description

@splinter89

What are you trying to achieve?

Let users know that Codeception 3 brings not only PHPUnit 8.x support, but also blazing-fast code coverage via krakjoe/pcov thanks to this bad boy sebastianbergmann/php-code-coverage#663

What do you get instead?

pcov is not mentioned anywhere 😞

Details

The setup is so simple, even your grandma can do it:

  • install pcov extension following these instructions
  • change defaults in your php.ini
    • disable xdebug by commenting out the line zend_extension=xdebug.so
    • enable pcov by adding extension=pcov.so and pcov.enabled = 1

Now, if you want code coverage, run vendor/bin/codecept --coverage-html
And if you need to debug some stuff, run php -d zend_extension=xdebug.so vendor/bin/codecept

This will help #1446, #4524, and also make lots of people really happy!

The running time of my tests with enabled code coverage went from 11 minutes down to 20 seconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions