An autograder is a test that runs on a student program to determine whether or not it can be submitted. In the courses that are part of the CodeHS Catalogue, when a student hits the ‘Submit Code’ button, the autograders are run, and if any fail, the student is prevented from submitting their code for grading.

With CodeHS Create, you can define your own autograders for the exercises you create for your students. These autograders are different for every language. In each case, you’ll be able to test the content of the student’s code, as well as the result that their code produces, whether that is a graphics canvas, a string or a webpage. 

You can set up Autograders for your Java, JavaScript, and HTML programs when you are using the Course creator. In the Playlist creator, you can create Autograders for HTML and Java programs. First, create an exercise with the relevant type and navigate to the Autograders tab. 

Click Add Autograder in order to add your autograder. 

At this point, we get to roll up our sleeves and write a bit of code: 

Each language has its own way of creating and defining autograders with code. When you initialize the autograders, you will be brought to a code editor with documentation for your chosen language. Read the documentation carefully, and enjoy the ability to ensure that the code you need to grade is of a high quality!

Did this answer your question?