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

Restructure Unit tests for gradebook aggregation, include natural weight

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.8, 3.3
    • Gradebook
    • MOODLE_28_STABLE, MOODLE_33_STABLE
    • 40

      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

            Unassigned Unassigned
            johno John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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