As an alternative to the CodeHS Java autograders, you can build your own JUnit autograders to test student code. See full documentation here.
To create an assignment with a JUnit Autograder:
From the Create App:
In the Assignments tool, click on the green Create New Assignment on the top right corner.
Choose Coding Exercise and then choose which program type you would like to create (i.e. Java(main)).
Add an assignment title, description, and any starter code for the assignment. Once finished, save the program and exit out of the editing modal.
Click the three dots next to the assignment you just made, and click Edit.
In the modal that pops up, choose Advanced Settings in the lower left corner.
Navigate to the Autograders tab and click Add JUnit. An autograder with example tests and comments will be added.
Add your test to the JUnitExampleTests.java file and click Save!
From the Assignments App:
Choose the course you'd like to add an assignment for by clicking on the dropdown menu in the upper left corner.
Then, click the blue Add button in the upper right corner and choose Assignment.
Add an assignment title and choose which lesson and modules you would like to add the assignment to and choose Create.
Choose Coding Exercise and then choose which program type you would like to create (i.e. Java(main)).
Add an assignment description and any starter code for the assignment. Once finished, save your changes and exit out of the editing modal.
Click Edit next to the assignment you just made.
In the modal that pops up, choose Advanced Settings in the lower left corner.
Navigate to the Autograders tab and click Add JUnit. An autograder with example tests and comments will be added.
Add your test to the JUnitExampleTests.java file and click Save!
Creating JUnit Autograder Demo
Still have questions? Contact our team at hello@codehs.com to learn more!