Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.7
    • Component/s: Unit tests
    • Testing Instructions:
      Hide

      1/ test all admin/tool/phpunit/cli/util.php options:

      Options:
      --drop         Drop database and dataroot
      --install      Install database
      --diag         Diagnose installation and return error code only
      --run          Execute PHPUnit tests (alternative for standard phpunit binary)
      --buildconfig  Build /phpunit.xml from /phpunit.xml.dist that runs all tests
      --buildcomponentconfigs
                     Build distributed phpunit.xml files for each component
      

      2/ execute phpunit tests via "vendor/bin/phpunit" and note down the results

      3/ edit /composer.json and run "php composer.phar udpate"

          "require-dev": {
              "phpunit/phpunit": "4.0.*",
              "phpunit/dbUnit": "1.3.*",
      

      4/ repeat 1/ and verify the results are the same as before

      5/ repeat 2/ and verify the results are the same as before

      NOTE: do not try testing installation of PHPUnit via PEAR, the support was removed completely.

      Show
      1/ test all admin/tool/phpunit/cli/util.php options: Options: --drop Drop database and dataroot --install Install database --diag Diagnose installation and return error code only --run Execute PHPUnit tests (alternative for standard phpunit binary) --buildconfig Build /phpunit.xml from /phpunit.xml.dist that runs all tests --buildcomponentconfigs Build distributed phpunit.xml files for each component 2/ execute phpunit tests via "vendor/bin/phpunit" and note down the results 3/ edit /composer.json and run "php composer.phar udpate" "require-dev": { "phpunit/phpunit": "4.0.*", "phpunit/dbUnit": "1.3.*", 4/ repeat 1/ and verify the results are the same as before 5/ repeat 2/ and verify the results are the same as before NOTE: do not try testing installation of PHPUnit via PEAR, the support was removed completely.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w13_MDL-44510_m27_phpunit4

      Description

      At present Moodle phpunit tests run only with PHPUnit 3.7, we should add some tweaks to allow it to run with PHPUnit 4.0.x.

      This may prove very useful during the lifetime of Moodle 2.7 LTS. Side-effect is that we need to drop the obsoleted install via PEAR (I would personally call it a bonus).

      Note: this issues is not about requiring the latest PHPUnit, the actual version required is specified in /composer.json

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/May/14