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

phpunit support - stage 3

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: Unit tests
    • Labels:

      Description

      converted and new tests:

      • gradebook tests
      • phpunit integration self-tests
      • /question/* - 2 minor issues left - see MDL-32375
      • mod_data search

      other:

      • wrapper for execution via Web UI - for OU test servers (for now hidden) - admin/tool/phpunit/webrunner.php
      • automated initialisation shell script in admin/tool/phpunit/cli/init.*
      • custom db connection info via $CFG->phpunit_database ...
      • better diagnostics of missing $CFG->phpunit_dataroot and $CFG->phpunit_prefix
      • new module and block callbacks in data generator
      • better perf for mysql and pg, more accurate reset after each test
      • Windows supported
      • schema for phpunit.xml configuration
      • prevention of cuncurrent test execution
      • support for global $DB mocking
      • dataset loading support
      • many more bugfixes and improvements

      documentation:

      todo in stage 4:

      • discuss problem in navigationlib_test.php method test_find_expandable() with SamH
      • completionlib - using mocks heavily
      • webservices - seems to do nothing
      • delete all converted simpletests
      • hide simpletest UI

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              skodak Petr Skoda
              Integrator:
              Dan Poltawski
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Jun/12