Test feature
ClosedPublic

Authored by stefant on Feb 6 2017, 5:53 PM.

Details

Summary

Add a "Test" feature to allow the user to test himself.
By pressing on "Start test", the user is given a set of 10 exercises and after he answers all the exercises, there should appear on the screen the percentage of correct answers.
Task: https://phabricator.kde.org/T5288

Test Plan
  1. Start an exercise.
  2. Press on the "Start test" (next to "give up")
  3. Answer all 10 questions
  4. Start a new test or continue with normal questions

Diff Detail

Repository
R163 Minuet
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
stefant updated this revision to Diff 10980.Feb 6 2017, 5:53 PM
stefant retitled this revision from to Test feature.
stefant updated this object.
stefant edited the test plan for this revision. (Show Details)
stefant added a reviewer: sandroandrade.
stefant set the repository for this revision to R163 Minuet.
stefant added a project: Minuet.
stefant added subscribers: sandroandrade, stefant.
sandroandrade requested changes to this revision.Feb 13 2017, 4:48 AM
sandroandrade edited edge metadata.

Some additional issues:

  • When running a test, if I click in another exercise type the test must be interrupted. Currently, it keeps counting the previous test.
  • When running a test and click in the breadcrumb (back) button, the test isn't interrupted.

It'd be good if you could add a text informing the current test exercise, e.g., "1 of 10".

Thanks for your patch,

src/app/qml/ExerciseView.qml
46

Please rename to currentExercise

99

Shouldn't that use "==" rather than ">="?

100

Please close the i18n call right after the string: i18n("You answered correctly"). There is no need for the broader context.

134

Please remove the braces

234

Maybe you can explicitly call newPlayQuestionButton.clicked()? With that, you can drop the newPlayQuestionOnPress function (which has a somehow weird name, btw) and keep the code inside newPlayQuestionButton.onClicked, as before.

This revision now requires changes to proceed.Feb 13 2017, 4:48 AM
stefant updated this revision to Diff 11295.Feb 13 2017, 4:00 PM
stefant edited edge metadata.
stefant removed R163 Minuet as the repository for this revision.
stefant changed the visibility from "All Users" to "Public (No Login Required)".

solved previous bugs:
+ Please rename to currentExercise
+ Shouldn't that use "==" rather than ">="?
+ Please close the i18n call right after the string: i18n("You answered correctly"). There is no need for the broader context.
+ Please remove the braces
Also solved the additional issues:
+ When running a test, if I click in another exercise type the test must be interrupted. Currently, it keeps counting the previous test.
+ When running a test and click in the breadcrumb (back) button, the test isn't interrupted.

not chanaged:

  • "Maybe you can explicitly call newPlayQuestionButton.clicked()": onClicked cannot be called (from what i know and what i found on qml documentation)
stefant edited edge metadata.Feb 13 2017, 4:01 PM
stefant set the repository for this revision to R163 Minuet.
This revision was automatically updated to reflect the committed changes.