https://github.com/smortex/auto-correct
Automatically correct students exercices
https://github.com/smortex/auto-correct
hacktoberfest
Last synced: 11 months ago
JSON representation
Automatically correct students exercices
- Host: GitHub
- URL: https://github.com/smortex/auto-correct
- Owner: smortex
- Created: 2016-11-27T19:12:08.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T18:10:49.000Z (almost 2 years ago)
- Last Synced: 2025-05-26T00:11:31.871Z (about 1 year ago)
- Topics: hacktoberfest
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# auto-correct
Automatically correct students exercices.
## Usage
### Exam preparation
Extract *auto-correct* in any directory, add your questions as individual files
in the `questions` directory, they will be presented in alphabetical order.
Any question for which an answer is to be checked should have a corresponding
script in the `checkers` directory. When checking the answer of the question
`question/sample-1`, the `checkers/sample-1` script will be evaluated. It
should return 0 is the answer is correct, 1 otherwise.
Ensure students will be allowed to write to the `answers` directory, a sticky
bit will probably have to be set on this directory.
### Testing students
Ask them to source the `exam` script:
```
. ~teacher-login/path/to/auto-correct/bin/exam
```
Before leaving, ask them to show you the output of the `grade(1)` script.