Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-25423 Gradebook 2.1 - META
  3. MDL-24330

Enhance grade related unit tests

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.1
    • 2.0
    • Gradebook, Unit tests
    • None
    • Any
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      The grades related unit tests could be better. Suggestions:

      1) test_grade_category_set_hidden() should test that hiding the category hides all grade_items within it. Not just the grade item associated with the category itself.

      2) Add tests to test grade calculation using the various category aggregation methods.

      3) Add tests to test grade calculation after some grade items have been hidden. These should include tests of what grades are displayed to student with "Hide totals if they contain hidden items" set to either hidden, show ex or show inc.

      Note that 2 and 3 may need to be combined to allow for easier testing of all category aggregation methods with and without hidden items.

        1. 20100922.patch
          14 kB
        2. 20101111.patch
          51 kB
        3. 20101203unittests.patch
          57 kB
        4. MDL-24330unittests.patch
          51 kB

            andyjdavis Andrew Davis
            andyjdavis Andrew Davis
            Nobody Nobody
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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