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

per-component phpunit.xml tests different directories to system

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.9.12, 3.10.9, 3.11.5
    • Unit tests
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
    • MDL-74044-master
    • Hide
      1. Initialise phpunit

        php admin/tool/phpunit/cli/init.php
        

      2. Build component configurations

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

      3. Open mod/forum/phpuit.xml and find the <testsuites>
        1. Confirm that only the tests directory is checked

          <directory suffix="_test.php">tests</directory>
          

      Show
      Initialise phpunit php admin/tool/phpunit/cli/init.php Build component configurations php admin/tool/phpunit/cli/util.php --buildcomponentconfigs Open mod/forum/phpuit.xml and find the <testsuites> Confirm that only the tests directory is checked <directory suffix="_test.php">tests</directory>

      The system phpunit configuration only tests the tests directory in each component, whilst the per-component directory tests the entire componet for any _test.php

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Andrew Lyons Andrew Lyons
            Victor Déniz Falcón Victor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

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

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