<aside>

💡 Note: This guide does not include JUnit Autograders. Visit our JUnit Autograder Guide for more information on using JUnit tests.

</aside>

<aside>

❓Not sure if you should use a Java Custom Autograder or a JUnit Autograder?

Visit Creating Java and JUnit Autograders

</aside>

Overview

Autograders in Java rely on reading methods and output from the different class files that students use to complete each exercise. You can access your custom exercises from the Create Page or the Assignments Page.

💡 Tip: If you have multiple assignments with similar autograders, consider duplicating an existing assignment and modifying the autograder rather than creating one from scratch.

Navigating from the Create Page

  1. Click Create New Assignment or choose an assignment that you've already created.
  2. To the far right of the assignment name, click ... > Edit
  3. In the edit window, scroll down and click Custom Autograder Edit in the lower left corner.
  4. Click the blue Add Custom Autograder button. Write your code in the Grader.java file to build your Autograder, and make sure to save your changes as you go.

Navigating from the Assignments Page

  1. Create a New Assignment or choose an assignment that you've already created.
  2. To the right of the assignment name, click [Edit].
  3. In the edit window, scroll down and click Custom Autograder Edit in the lower left corner.
  4. Click the blue Add Custom Autograder button. Write your code in the Grader.java file to build your Autograder, and make sure to save your changes as you go.

Creating the Autograder

From the edit modal, Scroll to the bottom of the Activity Tab and click on Custom Autograder Edit.

image.png