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 page:
Click Create New Assignment
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 ... 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 page:
Click the blue Add button in the upper left 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!