in-out-test
v1.0.6
Published
Simple CLI Application to run test cases through stdin and stdout
Downloads
1
Readme
in-out-test
Simple CLI Application to run test cases through stdin and stdout. Create simple input-output test cases files and run them against your program.
Install
Install globally in your system using:
npm install -g in-out-test
Usage
1. Directory Structure
+
|-- io
| |-- in
| `-- out
|--main.cpp
`config.io.json
- The
io
directory contains the test cases files- Files should be present in pairs (like (in, out), (in1, out1), etc.)
config.io.json
holds the configuration for in-out-test
2. config.io.json
Specify the compile
and run
commands here
{
"compile": "g++ main.cpp -o main",
"run": "main"
}
compile
field is not mandatory
3. Run
inout
- Run the above command on the root directory to discover test cases from
io
directory and run them - If
compile
field is specified in theconfig.io.json
, then it is run first before therun
field
4. Output
The files with the failed test cases are shown in the output!