Developers' Forum

Error while executing Coderunner bulk testing in moodle

Error while executing Coderunner bulk testing in moodle

by KiranKumar Rama -
Number of replies: 3

When I run the coderunner bulk testing from moodle, its giving some errors saying some scenarios are failed and some are passed. The moodle server OS is Ubuntu 17.10 and has mysql, php, etc including python and pylint (though coderunner is not in this server, I deployed to see if those scenarios turn to pass but same issue).

 Attached is the screenshot for reference, also the error message for Simple join test and Skool-z-Kool Take 2 scenarios. Can you let me where I made / missed configuration or a way to resolve this please

Attachment error1.png
Attachment error2.png
Attachment error3.png
In reply to KiranKumar Rama

Re: Error while executing Coderunner bulk testing in moodle

by Richard Lobb -

The SQL prototype questions, which are still marked as experimental, all require the program sqlite3. You can install that on your Jobe server with the command

sudo apt install sqlite3

The skool-is-kool Take 2 question was written for an older version of the python3-cosc121 prototype and hasn't been updated to match the latest version of the prototype. You can fix it by editing the question and changing the Template params field from

{"stripmain":true, "runextra":true}

to

{"stripmain":true, "runextra":true, "isfunction": false}

Thanks for the heads up on these - I'll update them in the next version.

Richard

In reply to Richard Lobb

Re: Error while executing Coderunner bulk testing in moodle

by KiranKumar Rama -
Thanks Richard,

The Sql error was resolved. I will do the other change shortly. However i have similar issue with the scenario "C# echo stdin" and it is throwing an error (Attached screenshot). Any dependency needs to be deployed for this issue?
Attachment error4.png
In reply to KiranKumar Rama

Re: Error while executing Coderunner bulk testing in moodle

by Richard Lobb -

Certainly you need C# (mono) installed on the Jobe server to run any C# questions. Check out https://www.monodevelop.com/download/ for install instructions for the particular flavour of Linux on your Jobe server.

Richard