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

Restructure Unit tests for gradebook aggregation, include natural weight

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8, 3.3
    • Fix Version/s: BACKEND
    • Component/s: Gradebook
    • Labels:
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_33_STABLE
    • Story Points:
      40

      Description

      Some tests will need to be added, based these on the "Calculation examples" section in the spec. These should be written very early to prove the state of the code. Also the items under "Logic changes" should be covered. In particular "Sum of Grades aggregation must be fixed to exclude hidden items and to exclude non-graded items" and "Determination of range (in Grader and User report) and Max grade (in Setup screen) must be fixed to exclude extra credit items". For developers who are unclear on how this new functionality works, the new unit tests should be there to explain in detail what is going on.

      vendor/bin/phpunit --testsuite core_grade_testsuite

      Relevant tests that will need to be looked at and upgraded:

      • lib/grade/tests
      • grade/tests
      • grade/grading/tests

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              johno John Okely
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: