grade
is a python script designed to build and test student projects
autograder
repo into the home directory on your machine$ cd ~
$ git clone git@github.com:/phpeterson-usf/autograder
PATH
in ~/.bashrc
$ micro .bashrc
Add to the bottom of .bashrc
export PATH=~/autograder:$PATH
.bashrc
$ source .bashrc
Clone the tests
repo for our class onto your machine
$ cd ~
$ git clone git@github.com:/cs221-s22/tests
New test cases will be added for each assignment so you will
$ cd ~/tests
$ git pull
at least once per week
To use grade
user@host:~/lab02-yourgithubid $ grade test -p lab02
. tc1+ tc2+ tc3+ tc4+ 100/100
If you fail a test case and want to see why
user@host:~/lab02-yourgithubid $ grade test -v -p lab02
-v (verbose) means print the expected input and expected vs. actual output for failing test cases. Actual vs. expected is printed in diff format.
grade
has configuration options in ~/.config/grade/config.toml
tests
somewhere besides ~
you can edit config.toml
testspath = "~/cs221/tests"