The question behaviour required by the Moodle CodeRunner question type.
Switch branches/tags
Clone or download
trampgeek Merge pull request #9 from nashtechdev01/fix_gdpr-master
Fix implementation get_reason() in provider in correct
Latest commit 83f5c2a Aug 9, 2018

Adaptive question behaviour for CodeRunner questions.

This Moodle question behaviour was created by Richard Lobb, University of Canterbury, New Zealand.

This question behaviour was created solely for use with CodeRunner: It provides the caching of question test results needed to prevent re-testing a student's code every time the result page is viewed.

To install, either [download the zip file](, unzip it, and place it in the directory moodle/question/behaviour/adaptive_adapted_for_coderunner. Alternatively, get the code using git by running the following command in the top level folder of your Moodle install:

git clone git:// question/behaviour/adaptive_adapted_for_coderunner

For full install instructions, see the CodeRunner install instructions.

CHANGE HISTORY 03/8/18: V1.3.5 Implement Moodle Privacy API (null provider). 28/4/18: V1.3.4 Change state string to "Precheck" after a precheck. [Thanks to Tim Hunt.] 20/5/17: V1.3.3 Prevent resubmission of an unchanged answer from being penalised.

2/03/17: Prevent penalties being applied when grading fails due to a sandbox error

6/01/17: Fix wrong penalty calculation when using penalty-regime on question with all-or-nothing grading turned off.

4/01/17: Fix bug - previous answers were not being correctly loaded into the answer boxes when "Each attempt builds on the last" was used.

Updated 9/11/16 to provide Precheck capabilities (an extra button that students can click to get a penalty-free run that provides limited checking of their code).