Assignment Test Cases

How to add automated test cases to assignments for instant student feedback

1

Open an assignment

2

View the assignment detail page

The assignment detail page displays the complete programming exercise that students will see, including the problem description, requirements, example output, and any starter code provided. Teachers can review how their assignment appears to students and use the buttons in the top right to edit the assignment, hide it from students, or delete it entirely.

View the assignment detail page
3

Add a test case

Teachers can add test cases to automatically check student submissions by clicking "Add Test Case" and defining input/output pairs. The screenshot displays two existing test cases: one using regex pattern matching to verify greeting format, and another using simple string matching to check for specific input values. Each test case shows the input provided, expected output, and matching method used for validation.

Add a test case