Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

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 question/behaviour/adaptive_adapted_for_coderunner

For full install instructions, see the CodeRunner install instructions.


11/02/20: V1.3.7. Set css class for correct styling of Precheck button. 25/01/19: V1.3.6. Fix bug in privacy provider (not working with pre-version7 PHP). 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.

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


The question behaviour required by the Moodle CodeRunner question type.



No packages published


You can’t perform that action at this time.