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 4.1.1

Moodle 3.8, 3.9, 3.10, 3.11
Released: Saturday, 27 November 2021, 7:10 AM

CodeRunner

Version: 4.1.1 November 2021

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

NOTE: Full documentation, change history and 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.

Changes since version 4.1.0+

  • Question authors can provide students with a 'Stop and read feedback' button that allows them to give up on a question and read whatever feedback the author chooses to provide, such as a hint or a sample answer, etc. Thanks Tim Hunt.

  • Administrators can provide a comma-separated list of Jobe servers rather than just a single one. A random one is picked for each job. Thanks Khang Pham Nguyen.

  • Question authors using combinator template graders can pass information from one run to the next using a new 'graderstate' attribute in their output json.

  • The 'stepinfo' record now includes a 'coderunnerversion' field.

  • The Twig sandboxing capability has been turned on for improved security in question authoring.

  • Bug fix: if a combinator template grader yielded invalid output on systems using Postgres as the database, the response was an unhelpful message "Stored test results could not be deserialised" rather than the intended explanation of the problem (such as a missing 'fraction' field).

  • Various minor refactoring, documentation tweaks, etc.

Version information

Version build number
2021112300
Version release name
4.1.1
Maturity
Stable version
MD5 Sum
a56aa71b51ec75c3badbfa1d6071110e
Supported software
Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v4.1.1

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