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

Speed up unit tests (again)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Assignment, Unit tests
    • Labels:

      Description

      Speeding up unit tests helps developers run them more often!

      I found very simliar code to the code I found in locallib mod_assign test cases last week in the test cases for the other libraries in mod_assign. Refactoring these test classes to all inherit from a common test class give the same speedup to all 3 testcases (lib, locallib and upgradelib).

      Before:
      Time: 05:13, Memory: 356.75Mb
      After:
      Time: 04:38, Memory: 342.75Mb

        Attachments

          Activity

            People

            • Assignee:
              damyon Damyon Wiese
              Reporter:
              damyon Damyon Wiese
              Integrator:
              Dan Poltawski
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Damyon Wiese, Adrian Greeve, Mihail Geshoski, Peter Dias, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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