Skip to main content

Stress Examples

Run Examples

  • cpp examples

    git clone https://github.com/LuchoBazz/quicktest.git

    cd quicktest/examples/stress/cpp
    quicktest stress --target-file=main.cpp --gen-file=gen.cpp --test-cases=15 --timeout=1000

    or shorter

    quicktest stress -t main.cpp -g gen.cpp --tc 15 --tout 1000
  • python examples

    git clone https://github.com/LuchoBazz/quicktest.git

    cd quicktest/examples/stress/python
    quicktest stress --target-file=main.py --gen-file=gen.py --test-cases=15 --timeout=1000

    or shorter

    quicktest stress -t main.py -t gen.py --tc 15 --tout 1000

Save Test Cases

you can use the following flags

  • --save-all Save all test cases
  • --save-bad Save only bad cases with WA, TLE or RTE states

for example

quicktest stress --target-file=main.cpp --gen-file=gen.cpp --test-cases=15 --timeout=1000 --save-bad

or shorter

quicktest stress --t main.cpp -g gen.cpp --tc 15 --tout 1000 --save-bad

Run Saved Test Cases

you can use the following flags

  • --run-ac Run test cases Accepted
  • --run-all Run all test cases
  • --run-rte Run test cases Run Time Error
  • --run-tle Run test cases Time Limited Exceeded
  • --run-wa Run test cases Wrong Answer

for example

quicktest stress --target-file=main.cpp --gen-file=gen.cpp --test-cases=15 --timeout=1000 --run-tle

or shorter

quicktest stress -t main.cpp -g gen.cpp --tc 15 --tout 1000 --run-tle