As an alternative to the CodeHS Java autograders, you can build your own JUnit autograders to test student code. See our full documentation here.
Creating an Assignment with a JUnit Autograder
From the Create App
Access the Create Assignments tool by clicking Create from the left menu.
If you haven't done so yet, Create a Coding Exercise and choose one of the Java options.
Add an assignment title, description, and any starter or solution code for the assignment.
Save your changes, and close the popup window, and refresh the page.
Click the three dots "..." next to an assignment you created and choose Edit.
Scroll down to the bottom of the window and choose Custom Autograder Edit.
Click the Add JUnit Autograder button. An autograder with example tests and comments will be added.
Add your test to the JUnitExampleTests.java file and click Save Autograder Code.
From the Assignments App
Click Assignments from the left menu.
Choose the course where you'd like to add an assignment by clicking the dropdown menu in the upper left corner. If you've already created a Coding Exercise, skip down to step 7.
Click the blue Add button in the upper right corner and choose Assignment.
Add a title, choose which lesson and modules you would like to add the assignment to and select Create.
Select Coding Exercise, then choose which program type you would like to create, such as Java(main).
Add an assignment description and any starter code for the assignment. Once finished, save your changes and exit out of the editing window.
Click Edit next to the assignment you created.
Scroll down to the bottom of the window and choose Custom Autograder Edit.
Click the Add JUnit Autograder button. An autograder with example tests and comments will be added.
Add your test to the JUnitExampleTests.java file and click Save Autograder Code.
Creating a JUnit Autograder Demo
Still have questions? Contact our team at hello@codehs.com to learn more!