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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

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