-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#10920] Add tests for calculating statistics #11291
[#10920] Add tests for calculating statistics #11291
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests look good! I left some comments regarding test data
.../app/components/question-types/question-statistics/mcq-question-statistics.component.spec.ts
Outdated
Show resolved
Hide resolved
.../app/components/question-types/question-statistics/msq-question-statistics.component.spec.ts
Outdated
Show resolved
Hide resolved
...omponents/question-types/question-statistics/num-scale-question-statistics.component.spec.ts
Outdated
Show resolved
Hide resolved
@Jellybeano please click |
.../app/components/question-types/question-statistics/mcq-question-statistics.component.spec.ts
Outdated
Show resolved
Hide resolved
.../app/components/question-types/question-statistics/mcq-question-statistics.component.spec.ts
Outdated
Show resolved
Hide resolved
@daongochieu2810 Hi. For your kind follow up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one @Jellybeano
What about these cases:
- no assigned weights (mcq/msq/rubric)
- checking that
perRecipientResponses
is expected (mcq/msq) - checking that
perRecipientStatsMap
is expected (rubric)
completed adding more test cases as suggested! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Part of #10920
Outline of Solution
Add tests for the calculation components of the various questions
Tests completed:
mcq-question-statistics
msq-question-statistics
num-scale-question-statistics
rank-options-question-statistics
rubric-question-statistics