Skip to content

geshuming/sa-grader-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Source Academy Autograder API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published