Skip to main content

Assigning coding homework with auto-grading: a teacher's workflow

The PEEMS team · Published November 10, 2026 · 4 min read

A student's coding submission in PEEMS: Python code, a score of 5.71 out of 10 and each test shown as passed or not passed

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.

The "Assign to class" dialog in the teacher console: choose the task, the format, when it opens, the due date and other classes to assign to

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.

A student's coding submission: Python code, a score of 5.71 out of 10 and the result of 7 tests, with the scoring test data kept hidden

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.

Class progress board: complete, in progress or not started for each assignment, including the coding task

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

  1. Start with a short task so students get used to submitting.
  2. Spend a few minutes in class looking together at one failed test: mistakes are part of learning.
  3. 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:

The PEEMS team

Nov 10, 2026

Automatic grading runs a student's program against a set of test cases and compares the results. This article explains how it works, its benefits, how to write good tests and what still needs the teacher.

Nov 10, 2026

Five short steps for teachers using PEEMS for the first time: sign in, create a class, add students, assign work with a due date, then follow class progress and export results to CSV.

Nov 10, 2026

The Results page shows your whole class in one table: who has finished, who is working and who has not started each assignment, with filters by name and status and a CSV export button.