- Mini-Judge now supports Checker Strategy for validating solution correctness, which can be used when solution correctness cannot be determined using Line by Line strategy.
- A Python script that will automatically run your source code against a set of provided test cases.
- Currently supports Java and C++.
- Python 3
- Java (and/or C++) compiler
- In the same directory as that which has the
.py
script, create a new folder calledtest_cases
. - Place the source code that you want to test in the same directory as that containing the
.py
andtest_cases
.
- Create a new subfolder inside the
test_cases
directory. - Inside the new subfolder, create 2 new files with the following names:
p2in1.txt
: This will be the name of the input file.p2out1.txt
: This will be the name of the expected output file.
- Make sure that all the steps in Setup Guide are completed.
- Compile and execute the script file.
- Inside
cmd_script.py
file, do the following:- Switch to Automatic Input Strategy: Change the value of
INPUT_STRATEGY
constant variable toautomatic
- Switch to Manual Input Strategy: Change the value of
INPUT_STRATEGY
constant variable tomanual
- Switch to Automatic Input Strategy: Change the value of
- To change compile command, modify the return value of get_compile_command function for the strategy that you will be using
- e.g: If your code is written in C++, you can modify return value of get_compile_command function of the CppCompilingStrategy class.
- Same goes for Java users
- It may takes some time to run through all the test cases