Developers' Forum

Error while executing Coderunner bulk testing in moodle

 
Picture of KiranKumar Rama
Error while executing Coderunner bulk testing in moodle
by KiranKumar Rama - Wednesday, 20 June 2018, 7:07 PM
 

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




Picture of Richard Lobb
Re: Error while executing Coderunner bulk testing in moodle
by Richard Lobb - Wednesday, 20 June 2018, 10:07 PM
 

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

Picture of KiranKumar Rama
Re: Error while executing Coderunner bulk testing in moodle
by KiranKumar Rama - Thursday, 21 June 2018, 1:26 AM
 
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?

Picture of Richard Lobb
Re: Error while executing Coderunner bulk testing in moodle
by Richard Lobb - Thursday, 21 June 2018, 2:19 PM
 

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