Local runner for GitHub autograder
Rust 96.8%
Nix 3.2%
30 1 0

Clone this repository

https://tangled.org/bwc9876.dev/gh-grader-preview https://tangled.org/did:plc:x7tlupbnqot7nu6udnffnv4h/gh-grader-preview
git@knot.bwc9876.dev:bwc9876.dev/gh-grader-preview git@knot.bwc9876.dev:did:plc:x7tlupbnqot7nu6udnffnv4h/gh-grader-preview

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

GitHub Grader Preview#

Simple program that runs test cases specified in an autograding.json file and reports results. Useful for previewing how GitHub will run your autograder and project.

WARNING

While this works on Windows, the GitHub classroom runner uses Linux by default, and so some professors may write commands specific to Linux meaning they won't work for you.

Usage#

gh-grader-preview

Will auto-find the autograding.json file located in .github/classroom relative to the current dir.

You can specify -f to choose a different file.

gh-grader-preview -f some/other/dir/autograding.json

To see output from the test cases, use the -v flag.

gh-grader-preview -v

For more information, run gh-grader-preview -h.

Building#

cargo build --release

Installation#

Copy the binary from target/release/gh-grader-preview to a directory in your PATH.

Run gh-grader-preview --man-page to print the man page to stdout, and then save it to a file.

Run gh-grader-preview --completions=SHELL (replace SHELL with bash, fish, or zsh) to generate a shell completion script.