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 3.6.0

Moodle 3.4, 3.5, 3.6
Released: Saturday, 2 February 2019, 5:27 AM

CodeRunner V 3.6.0

The two most important changes in this new version are:

  1. Student Attachments. Question authors can optionally allow students to attach extra files to their submissions. You can control how many files are allowed and/or required, specify a regular expression that uploaded filenames must match and set an upper limit on file size. The attachment files are loaded into the run-time working directory on Jobe when the task is run. You can check what files students have attached through the {{ ATTACHMENTS }} template parameter. This feature is still marked experimental; please let me know of any issues you find. Also see the note on the new version of Jobe, below.

  2. Forced display or hiding of CodeRunner feedback. To allow CodeRunner questions to be used in quizzes that are not using Adaptive mode behaviour, you can now force display of the CodeRunner result table regardless of the selected behaviour. A Feedback dropdown in the question author form sets the desired behaviour of each question (Force hide, Force show, Use quiz default).

The full change log since the last release (v3.5.3) is as follows

30 January 2018. v3.6.0

Add a new experimental feature that allows students to attach files to their submissions. The attached files are loaded into the working directory during the run.

Add a Feedback dropdown to the question authoring form that allows the question author to display or hide the result table regardless of the behaviour mode chosen for the quiz.

Fix bug in missing prototype error message (extraneous junk included, due to an exception being thrown).

18 November 2018. 3.5.3+

Bug fix: answerbox preloads of greater than ~1k generated debugging error messages (if developer-level messages were enabled). Thanks Tim Hunt.

Bug fix: Twig-all was not being applied to the question's General Feedback.

Improve handling of a failed unserialise of a legacy question attempt, which can (rarely) occur if a complete course, including student activity attempts, is moved between sites with different Moodle versions or database charsets.

Improve handling of Twig errors when editing questions that use TwigAll in conjunction with ValidateOnSave.

A new version of Jobe

A new version of Jobe, v1.6.0, is also available on github. You should consider upgrading your Jobe server in due course if you think heavy use will be made of student file attachments. The old Jobe server caches uploaded files indefinitely so performance might degrade over time as the number of files grows and disk space might also run out. The new Jobe server has a hierarchical file cache that should provide faster access with very large numbers of files and also includes a cache cleaner that kicks in if free disk space falls before 5%. This upgrade is not a high priority unless you think server will handle a large number of attachments and/or very large attachments. You may wish to defer any upgrade until you experience actual problems or you need to upgrade for other reasons, e.g. a more recent base OS.

Version information

Version build number
2019013000
Version release name
3.6.0
Maturity
Stable version
MD5 Sum
777e78e87899738cc322f89583512ea3
Supported software
Moodle 3.4, Moodle 3.5, Moodle 3.6

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v3.6.0

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