Marking dozens of programming submissions by hand every week leaves little time for feedback that actually supports learning. Auto-graded programming exercises only solve that problem if the tests are good: weak tests let wrong solutions through, while overly strict ones fail on floating-point rounding or harmless formatting differences. In this training you have a coding agent produce reference solutions, visible and hidden tests and deliberately faulty solutions for your exercises. You then check whether the tests really catch typical mistakes, and write feedback that shows students what to do next.
Who the auto-grading training is for
Lecturers, tutorial leads and teaching assistants in programming, numerical methods and data science modules who want to check submissions automatically and are confident Python programmers themselves.
What you'll walk away with
- Shape programming exercises so that they can be graded automatically, fairly and unambiguously
- Use a coding agent to create a reference solution plus visible and hidden pytest tests
- Measure test quality with deliberately faulty solutions and close the gaps you find
- Compare numerical results with sensible tolerances instead of exact equality
- Write clear failure messages and run submissions in an isolated environment
Typical scenarios
- A numerical methods exercise on Newton's method checks not only the final value but also the stopping criterion and the behaviour when the derivative is close to zero.
- For an introductory module the agent generates several typical wrong solutions per exercise, and the tutorial team sees at once which of them the existing tests miss.
- A department moves its Jupyter exercises to nbgrader while keeping hand-marked parts for interpretation and reasoning.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the auto-grading training covers
- Exercises built for auto-gradingDefine clear interfaces, function signatures, inputs and outputs without reducing the exercise to filling in blanks.
- Generating tests with the agentReference solution, visible example tests and hidden pytest tests, with every suggestion from the agent checked in review.
- Faulty solutions as a benchmarkThe agent writes deliberately broken variants with typical beginner mistakes, and you measure which ones the tests detect.
- Numerics and tolerancesFloating-point comparison, relative and absolute tolerances, random inputs with a fixed seed and time limits.
- Feedback and executionFailure messages that point to the problem rather than just saying wrong, and isolated execution of submissions in Docker.
- Fitting it into teachingAn overview of options such as nbgrader, CodeRunner in Moodle or GitHub Classroom, and how to combine them with hand marking.
Before the auto-grading training: prerequisites
- Solid Python skills and a basic grasp of pytest
- Two or three exercises from your module with model solutions
- A laptop with Docker, Python and a coding agent your university permits
Materials you keep
- A template for exercise packages with reference solution, tests and faulty solutions
- A checklist for fair tests and helpful failure messages
- The exercises from your module that you reworked during the training