1.0.6 • Published 3 years ago

in-out-test v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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 the config.io.json, then it is run first before the run field

4. Output

screenshot

The files with the failed test cases are shown in the output!

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago