quicktest 0.0.2

Command Line Interface (CLI) for stress testing in competitive programming contest
quicktest-0.0.2 is not a library.

Current Crates.io Version Quick Test License: MIT

Installation

If you already have Rust on your system:

cargo install --version 0.0.2 quicktest

If you don't have rust installed on your system, the following command will install Rust and the CLI at once:

Shell (Linux, Mac):

curl https://sh.rustup.rs -sSf | sh  && cargo install --version 0.0.2 quicktest

Usage

quicktest --help
quicktest 0.0.2
CLI for stress testing in competitive programming contest

USAGE:
    quicktest <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    cmp     Check the correctness of the <target-file> comparing it with <slow-file>
            with input test generated by <gen-file>
    help    Prints this message or the help of the given subcommand(s)
    tle     Check TLE

TLE Subcommand

quicktest tle --help
quicktest tle
Check that <target-file> does not have the TLE status using random test cases generated by <gen-file>

USAGE:
    $ quicktest tle --target-file "code/main.cpp" --gen-file "code/gen.cpp" --timeout=1000 --test-cases=100

FLAGS:
    -h, --help          Prints help information
    -s, --save-cases    Save test cases
    -b, --tle-break     TLE Break
    -V, --version       Prints version information

OPTIONS:
    -g, --gen-file <gen-file>          Generator File
    -t, --target-file <target-file>    Target File
    -n, --test-cases <test-cases>      Number of test cases [default: 10000]
    -o, --timeout <timeout>            Timeout TLE [default: 2000]

Cmp Subcommand

quicktest cmp --help
quicktest-cmp 0.0.2
Check the correctness of the <target-file> comparing it with <slow-file> with input test generated by <gen-file>

USAGE:
    quicktest cmp [FLAGS] [OPTIONS] --correct-file <correct-file> --gen-file <gen-file> --target-file <target-file>

FLAGS:
    -h, --help          Prints help information
    -s, --save-cases    Save test cases
    -V, --version       Prints version information
    -b, --wa-break      Break if Wrong Answer (WA) occurs

OPTIONS:
    -c, --correct-file <correct-file>    Correct File
    -g, --gen-file <gen-file>            Generator File
    -t, --target-file <target-file>      Target File
    -n, --test-cases <test-cases>        Number of test cases [default: 1000]
    -o, --timeout <timeout>              Timeout TLE [default: 2000]

Supported Languages

Language Version
C++ -std=c++17

License

Licensed under either of these: