Docker for running automated course tests against Open Learning XML
908
This repo builds a docker image of a minimal edx-platform install capable of doing several Open Learning XML (OLX) (a.k.a. Open edX course exports) content checks and validations.
This is extremely useful for raw XML authored (or latex2edx) courses, but it also has a lot of benefits for validating regular Studio edited courses as well. Notably link checking and some basic accessibility checks
If you have docker installed and a course to test, you don't even need
to grab this repository, just run: docker run -v "/path/to/course_dir":"/course" -w /test_course mitodl/openedx-course-test bash -e test_course replacing
path/to/course_dir with the file path to a folder above where you
have your course.
^[a-zA-Z0-9_\./-]+$XMLModuleStorealt attributes for accessibilityshow_captions set to true (warns only)/static/ magic links point at assets that exist in the course/jump_to/ links point at internally valid courseware/jump_to_id/ point at valid urls within the coursehttp[s] links are tested with HEAD and validated to return 200 status codeSimply run course_test /path/to/course/folder where the course
folder has exactly one course in it. This will need to be run on
a system that has docker installed and enough ram to run the
import (probably about 2GiB).
By default this will get the latest public docker image. If you want
to build your own locally instead, you can run course_test -l /path/to/course/folder and it will build it if you don't already have
the image. You can also manually build just the image with docker build -t=mitodl/openedx-course-test . and build from scratch
(no-cache) with docker build --no-cache -t=mitodl/openedx-course-test .
Due to somewhat ridiculous requirements needed to import ORA problems,
they will just show up as failed in the "Possible issues in course"
section as Error loading from xml. No module named require.
Content type
Image
Digest
sha256:4bdd26ccb…
Size
858.1 MB
Last updated
almost 11 years ago
docker pull mitodl/openedx-course-test