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

Invalid test coverage annotation in database module

    XMLWordPrintable

Details

    Description

      Found while integrating MDL-76833

      $ bin/moodle-docker-compose exec webserver php -d pcov.enabled=1 -d pcov.directory=. vendor/bin/phpunit -c mod/data/phpunit.xml --coverage-html coverage
      Moodle 4.2dev (Build: 20230105), 1a7a646ca2dae0deca42dc2ec16e823b76993578
      Php: 7.4.33, mysqli: 5.7.40, OS: Linux 4.15.0-201-generic x86_64
      PHPUnit 9.5.26 by Sebastian Bergmann and contributors.
       
      .............................................................W.  63 / 322 ( 19%)
      ............................................................... 126 / 322 ( 39%)
      ............................................................... 189 / 322 ( 58%)
      ............................................................... 252 / 322 ( 78%)
      ............................................................... 315 / 322 ( 97%)
      .......                                                         322 / 322 (100%)
       
      Time: 08:53.721, Memory: 143.00 MB
       
      There was 1 warning:
       
      1) mod_data\externallib_test::test_add_entry_empty_database
      "@covers \mod_data\mod_data_external::add_entry" is invalid
       
      phpvfscomposer:///var/www/html/vendor/phpunit/phpunit/phpunit:97
       
      WARNINGS!
      Tests: 322, Assertions: 1746, Warnings: 1.
       
      Generating code coverage report in HTML format ... done [00:00.964]
      

      Seems to come from MDL-75137

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              Laurent David Laurent David
              Andrew Lyons Andrew Lyons
              CiBoT CiBoT
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                16/Jan/23

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 32 minutes
                  32m