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

Ensure the uniqueness of phpunit.xml coverage entries

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.9.13, 3.10.10, 3.11.6, 4.0, 4.1
    • 4.0.3
    • Unit tests

    Description

      This was already reported @ MDL-72701, don't remember if it's a regression of ot or pre-existing.

      When the phpunit.xml files are generated, for coverage purposes the union of some "defaults" and the contents of the coverage.php files are joined.

      But it's possible that some of the entries, say lib.php for example, are both part of the default and part of the coverage.php file.

      When that happens... the phpunit.xml generated file has TWO <file>lib.php</file> entries. Same applies to directories. Both in the include and exclude sections.

      While it doesn't have any negative effect, phpunit coverage seems immune to dupes... it would be nice if we can guarantee the uniqueness of the information in the phpunit.xml generated files.

      Not critical at all (zero impact), but cosmetically interesting IMO. :-D

      Ciao

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              stronk7 Eloy Lafuente (stronk7)
              Simey Lameze Simey Lameze
              Victor Déniz Falcón Victor Déniz Falcón
              John Edward Pedregosa John Edward Pedregosa
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                22/Aug/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 58 minutes
                  1h 58m