CodeHS allows teachers to create customized autograders to help grade student work. Most CodeHS coding exercises come with their own pre-written autograder to help guide students and teachers through the curriculum.

An autograder is a test that runs on a student program to determine whether or not it can be submitted. When a student hits the Submit + Continue button on an assignment that has an autograder, the autograder will run, and if any of the autograder's tests fail, then the student will be prompted to fix their code before submitting.

An autograder with the right error messages can also help the student figure out what is wrong or missing in their code! Students can see if their code passes all the requirements of an autograder by hitting the Check Code button.

An autograder can check for output, as well as if the student used the correct style and/or control structures in their code.

image.png

Creating Custom Assignments

Creating Custom Autograders

Autograders are language-specific. When creating custom assignments, you can define autograders to test the content of your student’s code as well as the result that their code produces. Each language has its own way of creating and defining autograders with code. Review these guides to learn how to create custom autograders for your coding exercises!

Creating Java and JUnit Autograders

Creating Python Autograders

Creating JavaScript Autograders

Creating Karel Autograders

Creating HTML Autograders