插件作业提交稳定版

JUnit Exercise Corrector

assignsubmission_mojecGero Lückemeyer

  • Moodle 3.1
  • 更新 2017-01-07

This plugin allows students to submit their Java exercises, let them be tested against a set of JUnit tests (that have been priorly provided by the teacher) and receive immediate feedback on the test results.
Moodle JUnit Exercise Corrector (MoJEC) Plugin
A Moodle plugin to assist teachers correcting JUnit exercises.
This plugin allows students to submit their Java exercises, let them be tested against a set of JUnit tests (that have been priorly provided by the teacher) and receive immediate feedback on the test results.
For this to work, the plugin communicates with an external webservice providing essentially the following services on the given paths:
POST  /v1/unittest : Expects the assignment id and a zip file containing the unit test files as http post parameters.
POST  /v1/tasks : Expects the assignment id and a zip file containing the java files that should be tested as http post parameters. Extracts the zip file, compiles the java files and runs the tests (provided via /v1/unittest). Returns the results in form of JSON.
DELETE  /v1/unittest?assignmentId={id} : Triggers the deletion of the test files.
See here for an implementation of the webservice:  MoJEC Backend
Installation/Configuration
Install this plugin by using the Moodle web installer, or by extracting the plugin archive to {Moodle_Root}/mod/assign/submission/mojec and visting the admins notifications page.
Visit the plugin’s settings and configure the base URL of the web service to use.
The required web service can be found at: https://github.com/HFTSoftwareProject/MoJEC-Backend and https://hub.docker.com/r/hftstuttgart/mojec-backend/
Done!
Usage (Teacher)
Create an Assignment
In the Assignment settings: Scroll to the section  Submission types  and check the type  JUnit Exercise Corrector
Once  JUnit Exercise Corrector  is checked, upload a  single  ZIP file containing your JUnit tests in the corresponding JUnit test file upload environment.
View aggregated test results in the grading table column  JUnit Exercise Corrector
View detailed results of a particular submission by clicking the magnifyer icon in the respective cell of the JUnit Exercise Corrector column of the grading table

返回插件目录