CodeRunner icon

CodeRunner

Maintained by Tim Hunt, Richard Lobb
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.
Price option: Free

Supports Moodle 2.9-5.2 See all versions
Latest release: 1 month ago
Installations: 4170
Downloads (last 90 days): 1317

Frankenstyle name: qtype_coderunner
Question types

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

That's a great question, thanks. It seems I hadn't documented the Precheck functionality very well at all. So, I've just added a new section to the documentation and reported on it in the question author's forum on coderunner.org.nz (which is the best place to post queries of this sort). See https://coderunner.org.nz/mod/forum/discuss.php?d=718
First of all - THANKS!!! This tool is great and I'm glad this module is added to the LMS for schools in Hamburg.
I tried to write an own template grader and in general it is working as I print "print(json.dumps({"fraction":points, "got": output, "abort": False, "comment": comment}))".
If i try to avoid error messages in the pre_check I don't know what to print? I do think, I've overseen some important hints in the documentation and I'd be pleased to get some help.
Sorry about the delay in updating moodle.org. We're about to do so. We merged the development version into master and pushed to github 4 days ago, as v5.4.1. We're now running that version on our production server. We like to run new versions on our production server for a full week before publishing them on moodle.org. So unless a significant issue is found in the next few days (very unlikely) we will publish v5.4.1 at the end of this week. I think you can safely use that version.
The versions V5.2.2, V5.3.0, V5.4.1 in github are not puplished on moodle.org. So I do not know which would be the best version to use. Should I use Version V5.2.1 from moodle.org-page or master-Branch with Version V5.4.1?
For those asking about Moodle 4.4, please see https://coderunner.org.nz/mod/forum/discuss.php?d=697. Though if you're in a real hurry, you could just pull the master branch from github - see above.
Also interested in when it may be available for Moodle 4.4
I've run the CodeRunner test suite for both the master and the development branch on Moodle 4.4 + PHP 8.1. Both are giving clean runs. I've also run the bulk tester with the development branch on the 1600-odd questions in our introductory Python programming course and while there are several failures they're just related to things like pylint and timeouts - nothing that suggests any issues with CodeRunner + Moodle 4.4. So although we haven't used CodeRunner with Moodle 4.4 on a production server I think it's unlikely that there are any significant issues.
Has anyone tried installing CodeRunner on Moodle 4.4, by downloading it and then installing it? If so, how is it working? Thanks!
Any dates about updating the plugin to Moodle 4.4?
Thank you for the great tool. I am going to install it in our Faculty Moodle site.
Thank you @Richarb Lobb, turns out it was because all outgoing curl requests were blocked in the Http security settings. Thank you so much, I'm really grateful to you
Coderunner V5.2 works fine with Moodle 4.2. You probably have an issue with the Moodle HTTP security settings or a networking problem of some sort. I've posted some things to try on this coderunner.org.nz forum Failed to run tests: https://coderunner.org.nz/mod/forum/discuss.php?d=637. Please respond there.
I installed coderunner on Moodle 4.2 and I even installed the jobe server. I can confirm that the jobe server is running, but whenever I add a new question using coderunner and I try to save my question the "answer" field will diplay "Failed to run tests". Is there a fix for this, should I downgrade my moodle?
@Ravi Shankar Singh: Please specify the series of steps you have taken to install CodeRunner and give details on what goes wrong.
Hi I am not able to install coderunner in moodle version 4.1 so can any one help me out how can I install this plugin?