gems/canvas_quiz_statistics/README.md
A bunch of objects that can generate statistics from a set of responses to a quiz.
Work In Progress.
Implementing the analyzer
answer_analyzers/question_type.rbAnswerAnalyzer::Base classRegistering it
Edit lib/canvas_quiz_statistics/answer_analyzers.rb and:
CanvasQuizStatistics::AnswerAnalyzers::AVAILABLE_ANALYZERS
where the key should be the question type (with the _question suffix)
and the value would be your analyzerCovering it
You will probably need to simulate question data to cover your analyzer. Grab a JSON snapshot of the question_data construct for your question and save it in spec/support/fixtures/ and check out the fixture helpers in spec/support/question_helpers.rb for more information on how to use the fixture.