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

Enhance grade related unit tests

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: Gradebook, Unit tests
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

              Assignee:
              andyjdavis Andrew Davis
              Reporter:
              andyjdavis Andrew Davis
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Dec/10