Skip to main content

Using the Autograder Editor

Learn how to use the CodeHS Autograder Editor to add and edit custom autograder test cases and preset configs

Billy Gotsch avatar
Written by Billy Gotsch
Updated yesterday
Banner: This is a free feature.

The CodeHS Autograder Editor is where teachers can build and edit Custom Autograder files and set Preset Configs to check student code. Write and adjust autograder files in programming languages to create test cases, or use Preset Configs for simpler syntactical checks.

Learn more about CodeHS Autograders and what they can check in this article: CodeHS Autograders πŸ“–

Assignment Actions

CodeHS Autograders

When edits have been made to a CodeHS-created Autograder, you can reset the autograder to its original autograder files and configurations by clicking the icon below the assignment name.

Check out this article for more information about modifying CodeHS Autograders: Editing and Configuring CodeHS Autograders πŸ“–

image displaying where to reset an autograder to the default

Custom Autograders

In custom assignment autograder editors, you can Preview, Edit, and Assign the activity, and view how many courses the assignment is assigned to using the icons below the name of the assignment.

Check out this article for more information about building your own custom autograders: Adding Custom Autograders and Preset Configs πŸ“–

image displaying the preview and assign buttons in the autograder editor tool

Editor Navigation

Above the autograder code editor window, you can preview the activity, preview the currently selected test case, and maximize the code editor window.

image displaying the buttons to preview the test case, preview the activity, and expand the editor window

Autograder Files

Each autograder file will contain at least one test case that checks student code. You can toggle on or off CodeHS created autograder files, and add or edit duplicate copies or custom files. To add a new autograder file:

  1. Click the blue "+Add" button in the lefthand panel or click the green duplicate button next to an existing autograder file to create an editable copy.

  2. Navigate to the correct program file in the autograder code editor.

  3. Add or edit the test case(s) code in the program file.

  4. (Pro) Set Visibility and Feedback Level in the top right of the code editor window.

  5. Press the blue "Save Autograder Code" button at the top right of the editor.

gif displaying duplicating an Autograder file and adding a test case to the code

Preset Configs

Preset Config autograders are located below the Custom Autograder files in the lefthand side of the editor. These are pre-built tests that perform simple checks on a student's program. For example, a Preset Config can simply verify if a student used a while loop or wrote the specified minimum number of comments.

You can toggle Preset Configs on or off, and edit their options by clicking the pencil icon next to each field.

image displaying how to edit a Preset Config test

For an advanced guide to creating Custom Autograders, take a look at our Autograder Guides πŸ“š.


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

Did this answer your question?