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

Unit tests for quiz statistics report

XMLWordPrintable

      We want to be able to unit test the quiz reports. This will involve populating the unit test db with test data.

      Using the data generator we want to be able :

      1. Create test instances of each sort of question type.
      2. Create a quiz from a set of questions.
      3. Supply attempt data for each of those question types.
      4. Build entire quiz attempts by supplying attempt data for each question in the quiz, pulling responses from a csv file.
      5. Compare the results generated to pre calculated stats for the responses.

      I will create sub tasks to track these tasks.

        1.
        Create test instance of each question type Sub-task Closed Jamie Pratt (Inactive)
        2.
        create random question Sub-task Closed Jamie Pratt (Inactive)
        3.
        Create a quiz from a set of questions. Sub-task Closed Jamie Pratt (Inactive)
        4.
        Test question editing forms and question saving Sub-task Closed Jamie Pratt (Inactive)
        5.
        Supply quiz attempt data for each of the question types. Sub-task Closed Jamie Pratt (Inactive)
        6.
        Build entire quiz attempts by supplying attempt data for each question in the quiz, pulling responses from a csv file. Sub-task Closed Jamie Pratt (Inactive)
        7.
        Generate stats and compare them to pre calculated stats, for the responses from csv file. Sub-task Closed Jamie Pratt (Inactive)
        8.
        For random questions need to be able to specify a particular randomly selected question for each attempt for testing purposes Sub-task Closed Jamie Pratt (Inactive)
        9.
        we need to be able to select a particular variant for simulated attempts Sub-task Closed Jamie Pratt (Inactive)
        10.
        convert from an array representing a student response from a csv file to post data for this instance of the quiz Sub-task Closed Jamie Pratt (Inactive)
        11.
        for multianswer question type pass through simulated data to sub questions Sub-task Closed Jamie Pratt (Inactive)
        12.
        compare marks and grades from quiz attempts to expected marks and grades Sub-task Closed Jamie Pratt (Inactive)
        13.
        generate csv files of random responses and expected grades from csv file describing quiz Sub-task Closed Jamie Pratt (Inactive)
        14.
        allow download of question steps data as csv file Sub-task Closed Jamie Pratt (Inactive)
        15.
        allow for reuse of code for simulating attempts, checking results and checking stats and response analyis Sub-task Closed Jamie Pratt (Inactive)

            jamiesensei Jamie Pratt (Inactive)
            jamiesensei Jamie Pratt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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