Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 831 Bytes

README.md

File metadata and controls

30 lines (17 loc) · 831 Bytes

Command Line API for Source Academy Grader

Installation and Requirements

Install this repo into the same folder containing the grader repo.

This API requires NPM.

Just type npm install to install the necessary dependencies

Set the GRADERPATH option in the .env file to point to the grader build.

Usage

The API uses the SOLUTION node's to test against the test cases by default. If you need to test a student code, use the -c flag.

To test your assessment xml file,

build/index.js <path-to-xml-file>

Alternatively, you may want to pipe the output

build/index.js <path-to-xml-file> > output.txt

Options

option description
-t, --task <number> selects the task to test
-c, --code <path-to-file> selects the student code to test