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

Bump php-code-coverage issue to latest

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.11.12, 4.0.6, 4.1.1
    • 3.11.11, 4.0.5, 4.1.1
    • Unit tests
    • MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-76833-401
    • MDL-76833-master
    • Hide
      1. Ensure you have xdebug installed:

        pecl install xdebug
        

      2. Initialise PHP Unit in your Moodle root folder

        php admin/tool/phpunit/cli/init.php
        php admin/tool/phpunit/cli/util.php --buildcomponentconfigs
        

      3. Generate a coverage report for some part of Moodle:

        php -dxdebug.mode=coverage ./vendor/bin/phpunit -c mod/data/phpunit.xml --coverage-html coverage
        

      4. View the coverage report in your browser by viewing http://path/to/your/site/coverage
        1. Confirm that the content is not over-sized
      5. Inspect the body of the document with your developer tools
        1. Confirm that the font-size is 1em
      Show
      Ensure you have xdebug installed: pecl install xdebug Initialise PHP Unit in your Moodle root folder php admin/tool/phpunit/cli/init.php php admin/tool/phpunit/cli/util.php --buildcomponentconfigs Generate a coverage report for some part of Moodle: php -dxdebug.mode=coverage ./vendor/bin/phpunit -c mod/data/phpunit.xml --coverage-html coverage View the coverage report in your browser by viewing http://path/to/your/site/coverage Confirm that the content is not over-sized Inspect the body of the document with your developer tools Confirm that the font-size is 1em

      I just encountered this issue in php-code-coverage which makes it unusable.

      https://github.com/sebastianbergmann/php-code-coverage/issues/960

      It's a stupid issue but it makes the package basically unusable unless you're sitting with a 4K monitor.

        1. 76833-before.png
          76833-before.png
          1.79 MB
        2. 76833-after.png
          76833-after.png
          2.98 MB
        3. font_body_1em.png
          font_body_1em.png
          231 kB
        4. (IV) 1 Passed -- (400)MDL-76833.png
          (IV) 1 Passed -- (400)MDL-76833.png
          84 kB
        5. (IV) 1 Passed -- (Master)MDL-76833.png
          (IV) 1 Passed -- (Master)MDL-76833.png
          79 kB
        6. (IV) 1 Passed -- (311)MDL-76833.png
          (IV) 1 Passed -- (311)MDL-76833.png
          157 kB
        7. (IV) 1 Passed -- (401)MDL-76833.png
          (IV) 1 Passed -- (401)MDL-76833.png
          80 kB
        8. (V) 1 Passed -- (311)MDL-76833.png
          (V) 1 Passed -- (311)MDL-76833.png
          286 kB
        9. (V) 1 Passed -- (400)MDL-76833.png
          (V) 1 Passed -- (400)MDL-76833.png
          220 kB
        10. (V) 1 Passed -- (401)MDL-76833.png
          (V) 1 Passed -- (401)MDL-76833.png
          215 kB
        11. (V) 1 Passed -- (Master)MDL-76833.png
          (V) 1 Passed -- (Master)MDL-76833.png
          230 kB

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            David Woloszyn David Woloszyn
            Paul Holden Paul Holden
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 10 minutes
                6h 10m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.