Skip to content

Feature Request: use h5p setup or other CLI commands to install H5P dependencies under content type/library under test #152

@RPena-D2l

Description

@RPena-D2l

Branch for context:
https://github.com/h5p/h5p-true-false/tree/refs/heads/rpena/unit-test-prototype

I have been spiking on implementing unit testing for H5P libraries. I have been able to spin up an H5P server using this CLI tool in CI, and have a verified with a test that the network has been working correctly.

The next step for this process is to build whatever content type under test into the CLI under libraries. The problem I am facing now, is that whenever I try to build a content type, it seems to always pull from main.

I would like to add either a new CLI command, or modify the setup command to read a local library.json file, and not pull in the content type under test from main or a release branch. I want to build the H5P dependencies around the changes in PR to adequately unit test them against the CLI server.

https://github.com/h5p/h5p-cli/blob/master/cli.js#L175
https://github.com/h5p/h5p-cli/blob/master/logic.js#L451

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions