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 Custom Course creator. When creating a Playlist, you can create Autograders for HTML and Java programs. 

Watch our webinar on creating autograders!

Creating Your Own Autograder

  1. Select the Playlist you want the new assignment to be part of and select edit. 
  2. Create an exercise with the relevant type and navigate to the Autograders tab.
  3. Click Add Autograder in order to add your autograder. 
  4. Write your code to create you Autograder.

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!

Language-Specific Autograder Guides

Programming Python Autograders

Programming Java Autograders

Karel Autograders - video example:

For more information, check out Autograders.  

Still have questions? Contact our team at hello@codehs.com to learn more!

Did this answer your question?