Does anyone have experience with auto-grading scala code on a “moodle”.
This is an open source learning platform, what is vast of the things it can do. Our school uses one and it is possible for teachers to set up programming assignments to students, who submit their solutions to have them auto graded. Ours is set up for Python and several other languages, but not for Scala. The administrators of our site are not Scala experts but are happy to set it up for Scala. I don’t really know what such a setup even ought to look like. What all must be installed behind the scenes? How do I (as instructor) need to set up the assignments so they can be auto graded.
Currently I’m planning (for each assignment) to give the students a template scala file with
??? in various places which the student has to complete. I’m also going to give the students a basic test suite file, which uses
import homework._ to import their code. I’d like the auto-grader to load their code (the file the student submitted) and compile it with the test suite which I provide plus other files as necessary which I have to specify.
If anyone can give me insight as to how this is supposed to work, I can explain the use model to our system administrators.
For example, do I need to write a UNIX shell script for each assignment which calls the scala compiler from the unix command line specifying the full paths of all the files, and then runs the program. I don’t know how to run the test suites from the unix command line and check for success or failiure… From IntelliJ I just select the name of the class and select “Run Asisgnment1TestSuite” for example.