This is a Python program that allows you to run multiple local test cases for your code with only one line of code.
python3 Local_Grader.py
Also, there are pre-made tests provided that you can run directly without any modification.
Python version should be later than 3.11. Not guaranteed to run on earlier versions.
Take EECS 281 Project 2a as a quick example:
- Install
python3
. - Download
examples/p2a-test.py
into your project directory. - Run the following command.
python3 p2a-test.py
The output files will be *-ans.txt
in the current directory.