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
- has a non-specific relationship to
-
MDL-46576 Implement Natural aggregation
-
- Closed
-