Simple and easy to modify gradescope autograder for C/C++ files. It is already setup to check for submission of correct files and for compilation. It designed to read in STDOUT and produce a grade based on what STDOUT produces.
setup.sh
- Automatically installs dependencies for gradescope docker
run_autograder.py
- Entry point for the gradescope autograder
- This file is called when a submission is made
run_tests.py
- Entry point for running tests on student submission
- File is called from run_autograder
grade_util.py
- Config of filenames and directories
- Contains helper functions for testing
- Keeps filenames/directories consistent throughout testing
test_files.py
- Example test case that checks if student submitted all files
All of the files must be compressed into a zip with the same file heirarchy as shown in the "example.zip".
The compressed file is then uploaded to gradescope.
A few steps have to be taken before compressing:
Rename "run_autograder.py" to "run_autograder":
mv run_autograder.py run_autograder
Add executable access to "run_autograder":
chmod +x run_autograder