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.
Creating Your Own Autograder
First, you will need to access Legacy Edit through the playlist where the assignment is located. To do this, navigate to your Create page:
Click "..." Edit next to the assignment, and choose Advanced Settings
If the assignment is in a Playlist, click "..." next to the Playlist name and choose Legacy Edit
The assignments in the playlist will appear on the left hand side. From here:
Create an exercise and navigate to the Autograders tab. (Note: Only coding assignments of the relevant type will have the Autograder tab)
Click Add Autograder.
Write your code to create you Autograder.
Each language has its own way of creating and defining autograders with code. When you initialize the Autograder, 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
Karel Autograders - video example:
For more information, check out Autograders.
Still have questions? Contact our team at firstname.lastname@example.org to learn more!