Skip to content

Tests answer real content types as a learner and check the result #314

Done

Description

@alekswebnet

The checks that play real content types pass on ready, and nothing checks what the content then does.

  • The verifier fails a package on an error while booting or an empty frame.
  • The weekly sweep plays the pack's 55 content types and reports what each sends, without judging it. design/testing.md says so: "whether a type's result is right, which the report shows and nothing checks".
  • Two false passes are on record in design/security.md: AR Scavenger passes and shows no scene, and a Vimeo video passed while it ended in its loading error.
  • The player's tests of finished and resume play a fixture content type made for them.
  • One real content type is answered and scored: the demo's quiz, in the embed package's SCORM tests and the skills' playback test.

So a change that breaks a score, a finished or a saved state in Course Presentation or Interactive Video passes every check. With Question Set they are the three most used types: 13.8%, 12.3% and 9.8% of all content on H5P.com in H5P Group's count of December 2022.

Proposal: learner journeys. A test project of its own, apps/journeys, as apps/skills is for the skills. A journey:

  • builds a real package of a content type with h5p-author, from a short source whose right answers the test knows;
  • plays it in the element, served as the verifier serves a package, against the repository's copy of the library pack, with no network;
  • answers it as a learner does, with the browser's own clicks and keys;
  • checks the result: the score in finished, the statements, and after a reload with resume the state the content comes back with.

How a journey is written (the owner's rule): one content type at a time. First its own script is read for what the type can do: what it scores, what a wrong answer costs, when it offers Retry and Show solution, what it saves. Then each of those becomes a case.

To do

Found on the way

Later: the sweep held to a recorded result for each type, so a change in what any of the 55 sends fails it. Moved to #345.

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions