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
- Select the Playlist you want the new assignment to be part of and select edit.
- Create an exercise with the relevant type and navigate to the Autograders tab.
- Click Add Autograder in order to add your 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 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
Karel Autograders - video example:
For more information, check out Autograders.
Still have questions? Contact our team at firstname.lastname@example.org to learn more!