Accessing the Custom Autograder Edit Window

  1. Go to a created assignment within the Create tool or the Assignments tool and choose Edit.
  2. In the following window, select Autograder from the navigation menu and click Edit Autograder. If there currently are no autograders on that assignment, the button will say Create Autograder instead.
  3. Find the autograder files on the left-hand menu under Custom Autograders and begin making your changes. If there are no autograders, click Add to create one.
  4. Don't forget to click Save Autograder Config when you're finished!

Building Your Autograder

Understanding the Parameters

The JavaScript autograder consists of two key functions where tests can be implemented:

beforeRun(code)

code is an object with keys student and solution

afterRun(output)

output is an object mapping {String:object}. The keys are student and solution

💡 Important: The console output does not include text that was printed using readInt, readLine, etc.