Abstract-Tech / abstract-scorm-xblock

XBlock for Open edX to support SCORM packages with course import/export
Apache License 2.0
9 stars 3 forks source link

Abstract Scorm XBlock

Yet another SCORM XBlock for Open edX®.

Supports course export/import. Editable within Open edx Studio. Saves student state and reports scores to the progress tab of the course. Currently supports SCORM 1.2 and SCORM 2004 standards.

Developed by Abstract Technology, based on edx_xblock_scorm by Raccoon Gang .

Installation

Install package with

pip install abstract-scorm-xblock

Usage

Development

Setup

To setup the development environment:

Development and Debugging

In order to be able to develop and debug effectively some steps may be taken:

Running tests

Tests can be run with:

ddc-project run --rm lms python manage.py lms test abstract_scorm_xblock --keepdb

The first time this command is run it will initialize the test database. Remove the --keepdb flag if you want the test database to be created/destroyed each time.

To run a coverage report:

ddc-project run -e COVERAGE_RCFILE=../derex.requirements/abstract_scorm_xblock/.coveragerc --rm lms sh -c "coverage run manage.py lms test abstract_scorm_xblock --keepdb && coverage html"

This will produce an HTML coverage report in the abstract_scorm_xblock/htmlcov directory.

You can also use the Makefile shortcuts:

make test
make coverage

Caveats

TODO