This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Grading Structure
Nelson Lojo edited this page Jun 22, 2023
·
1 revision
For each variant (consider <var_i>
) the following is done:
- Make an empty working directory (
working/
) - Load the files from
tests/common/
intoworking/
- Load the files from
tests/<var_i>/
intoworking/
- Load the solution into
working/
- in which
_submission_file
will be appended to the file detailed inmeta.json
- and if
"submission_root"
is defined inmeta.json
, all files are copied toworking/<submission_root>
- in which
- Run the
GRADING_SCRIPT
(inparse.py
) and serialize the output intoVar
objects-
GRADING_SCRIPT
is defined ingrader/parse.py
and is by default$ cd working/ && bundle install --quiet && rspec --format json
-
- Repeat steps 1-3
- Load the student submission (which will be loaded into
suites/submission
upon launch of the image) intoworking/
- the text input by the student will be in
tests/submission/_submission_file
- all other files will be in
tests/submission/
- the text input by the student will be in
- Repeat step 5
- Compare the
Var
object generated by the student's submission to that of the instructor's solution and report results to Prairielearn