CodeRunner

Question types ::: qtype_coderunner
Maintained by Richard Lobb, TimTim Hunt
A question type that allows question authors to set programming questions in which the student answer is code in some programming language, which is graded by running it. More generally it can handle any question to which the answer is text that can be graded by a computer program written by the question author.

CodeRunner 5.7.2+

Moodle 4.3, 4.4, 4.5, 5.0
Released: Tuesday, 19 August 2025, 10:32 AM

CodeRunner

Version: 5.7.1+ May 26, 2025. Requires MOODLE V4.3 or later + PHP >=8.1. Earlier versions of Moodle must use CodeRunner V4.

Authors: Richard Lobb, University of Canterbury, New Zealand. Tim Hunt, The Open University, UK.

For full documentation of this plugin, see here.

NOTE: A few sample quizzes containing example CodeRunner questions are available at coderunner.org.nz. There's also a forum there, where you can post CodeRunner questions, such as requests for help if things go wrong, or are looking for ideas on how to write some unusual question type.

Release Notes Version 5.7.2+ August 19, 2025.

  • Updates to grade caching.
    • Scheduled task purges old cache entries automatically (only if using FileStore)
    • Manual grade-cache cleaner available (script cachepurgeindex.php)
    • Fix for issue #261 Unsupported modification of PAGE->context
  • Extended bulk-tester capabilites
    • Works with question banks in Moodle 5
    • Can run multiple tests for each question (helps with randomised questions)
    • Can optionally disable grade cache
    • Improved output including timings
  • Fix for issue #254 The presence of a CodeRunner question in the course's question bank causes the duplication of quizzes to fail.
  • Fix for issues #246/#258 Cache cleaner task failed because of use of redis
  • Fix for issue #260 When you navigate to the ace editor with keyboard using tab, the screen reader does not state that you are on the editor clearly.

Version information

Version build number
2025081500
Version release name
5.7.2+
Maturity
Stable version
MD5 Sum
4c878d7fc71ab57c3f6a81331ced242c
Supported software
Moodle 4.3, Moodle 4.4, Moodle 4.5, Moodle 5.0
  • Latest release for Moodle 4.3
  • Latest release for Moodle 4.4
  • Latest release for Moodle 4.5
  • Latest release for Moodle 5.0

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v5.7.2+

Default installation instructions for plugins of the type Question types

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myquestiontype") in the "question/type" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation