Assigning coding homework with auto-grading: a teacher's workflow
The PEEMS team · Published November 10, 2026 · 4 min read

The teacher picks a task, a format and a due date, and assigns it to one or more classes; students submit, the system runs the tests and returns results test by test. This post walks through that workflow.
If you want to understand the principle of test-case grading and how to write good tests, read Computing teachers: how to auto-grade programming assignments. This post covers only the steps: a short workflow from assigning the task to reading the class results. Grading with test cases belongs to Pemi Code, which is coming soon; the assign dialog and progress board described below are part of the teacher management page.
Step 1: Pick the task and the format
In the class dashboard, the teacher chooses Assign. An "Assign to class" dialog opens, with these choices:
- Pick the quiz or lesson to assign, for example "Weekly task 3: for loops" as in the screenshot.
- Pick the format: Practice (not graded), Homework or In-class test. With "homework", students can still hand in late work, and it is marked as late.
- Set the maximum number of attempts and a time limit if you need them.

Step 2: Set the timing
The teacher sets when it opens (leave it blank to open immediately) and the due date. Quick buttons such as "Tomorrow", "End of the week" and "In 7 days" speed up choosing a deadline.
Step 3: Assign to one class or several
If the same task is meant for several classes, the teacher ticks the extra classes under "Assign to more classes". They all receive the same task, deadline and format, so there is no need to repeat the steps class by class.
Step 4: Students submit, the system runs the tests
Students write their code and press submit. The system runs the submission against a set of test cases defined by the exercise and returns the result. Students see each test as passed or not passed, so they know where to look when fixing and resubmitting (if the task still has attempts left).
The teacher can read each submission too: choose View attempt to see the student's code, the score and the result of each test. The data of the scoring tests stays hidden; only the result is shown.

Step 5: Read the class results
After students submit, the teacher can see the whole class's progress: who has submitted, who is working on it, who has not started, and each student's score. This shows who needs help first.

What auto-grading helps with, and what it does not
- It helps: fast, consistent marking with instant feedback for each student, and less teacher time spent on checking what is simply right or wrong.
- It does not replace the teacher's comments on how a student writes, thinks and creates. Test cases show whether a program works, not everything about the quality of the work.
Practical suggestions
- Start with a short task so students get used to submitting.
- Spend a few minutes in class looking together at one failed test: mistakes are part of learning.
- Use the results table to choose revision tasks for next week.
Frequently asked questions
What if a student submits late? With the homework format, late submissions are still accepted and marked as late.
Can I assign one task to several classes at once? Yes, tick the extra classes in the assign dialog; they share the task, deadline and format.
Do students see where they went wrong? After submitting, students see whether each test passed or not, so they know where to look.
How can I see this for my own class? Organisations are set up by the PEEMS team. Email us to arrange a demo of about 20 minutes.
Want to see the system?
Would you like to see this workflow with your own class? Book a demo (about 20 minutes) or email us:
- Email: [email protected]
The PEEMS team


