<aside>

💡 Note: This guide does not include standard Java Autograders.

Visit our Java Autograder Guide for more information on standard autograders.

</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

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].

Creating the JUnit Autograder

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

image.png

You will have the option to Add Custom Autograder or Add JUnit Autograder. For this guide, we will use the JUnit Autograder.

image.png

The autograder will contain four files. You should only need to edit the main file, JUnitExampleTest.java. The other files should remain in the autograder to ensure the tests are run correctly.

Screenshot 2025-03-20 at 11.44.09 AM.png