Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68316

Include pcov-clobber as a dev dependency

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.5, 3.8.2, 3.9
    • Fix Version/s: None
    • Component/s: Unit tests
    • Labels:
      None

      Description

      pcov/clobber allows code coverage which is faster than xdebug, and a similar speed but more accurate than phpdbg.

      pcov is a PECL extension, and is natively supported in phpunit 8 onwards.

      For older versions of phpunit you must use pcov/clobber to install the driver:

      ./vendor/bin/pcov clobber
      ./vendor/bin/phpunit --coverage-html coverage
      

        Attachments

          Activity

            People

            Assignee:
            dobedobedoh Andrew Nicols
            Reporter:
            dobedobedoh Andrew Nicols
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: