Global Commands
Quick Test CLI provides several subcommands for different testing scenarios:stress- Verify code execution time and memory usagecmp- Compare target file with correct solutioncheck- Validate answers using a custom checker scriptoutput- Run test cases and generate output filessetup- Configure Quick Test settingsexample- Show usage examples for subcommands
Stress Command
Verify that the code execution time does not exceed what is allowed.Usage
Required Options
The target file to test. This is the solution you want to verify.Short flag:
-tExample: --target-file solution.cppOptional Parameters
Generator file that produces random test cases.Short flag:
-gExample: --gen-file generator.cppMaximum execution time allowed in milliseconds.Alias:
--toutExample: --timeout 3000Maximum memory allowed in bytes (default: 1GB).Alias:
--mlExample: --memory-limit 512000000Number of test cases to run.Alias:
--tcExample: --test-cases 500Prefix for saved test case files.Short flag:
-pExample: --prefix my_testBehavior Flags
Break execution if WA, TLE, or RTE status occurs.Short flag:
-bAlias: --breakSave only test cases with WA, TLE, or RTE status.Conflicts with:
--save-allSave all test cases regardless of status.Conflicts with:
--save-badRun Filters
Run all saved test cases.
Run only test cases with Accepted status.
Run only test cases with Wrong Answer status.
Run only test cases with Time Limit Exceeded status.
Run only test cases with Runtime Error status.
Run only test cases with Memory Limit Exceeded status.
Cmp Command
Check the correctness of the target file by comparing it with a correct solution.Usage
Required Options
The target file to test.Short flag:
-tExample: --target-file solution.cppThe correct solution file to compare against.Short flag:
-cExample: --correct-file correct.cppOptional Parameters
Generator file that produces random test cases.Short flag:
-gExample: --gen-file generator.cppMaximum execution time allowed in milliseconds.Alias:
--toutExample: --timeout 3000Maximum memory allowed in bytes (default: 1GB).Alias:
--mlExample: --memory-limit 512000000Number of test cases to run.Alias:
--tcExample: --test-cases 500Prefix for saved test case files.Short flag:
-pExample: --prefix my_testBehavior Flags
Break execution if WA, TLE, or RTE status occurs.Short flag:
-bAlias: --breakSave only test cases with WA, TLE, or RTE status.Conflicts with:
--save-allSave all test cases regardless of status.Conflicts with:
--save-badShow differences between expected and actual output.Short flag:
-dRun Filters
Run all saved test cases.
Run only test cases with Accepted status.
Run only test cases with Wrong Answer status.
Run only test cases with Time Limit Exceeded status.
Run only test cases with Runtime Error status.
Run only test cases with Memory Limit Exceeded status.
Check Command
Check the correctness of answers using a custom checker script. Useful for problems that don’t have a unique answer.Usage
Required Options
The target file to test.Short flag:
-tExample: --target-file solution.cppThe checker script that validates the output.Short flag:
-cExample: --checker-file checker.cppOptional Parameters
Generator file that produces random test cases.Short flag:
-gExample: --gen-file generator.cppMaximum execution time allowed in milliseconds.Alias:
--toutExample: --timeout 3000Maximum memory allowed in bytes (default: 1GB).Alias:
--mlExample: --memory-limit 512000000Number of test cases to run.Alias:
--tcExample: --test-cases 500Prefix for saved test case files.Short flag:
-pExample: --prefix my_testBehavior Flags
Break execution if WA, TLE, or RTE status occurs.Short flag:
-bAlias: --breakSave only test cases with WA, TLE, or RTE status.Conflicts with:
--save-allSave all test cases regardless of status.Conflicts with:
--save-badRun Filters
Run all saved test cases.
Run only test cases with Accepted status.
Run only test cases with Wrong Answer status.
Run only test cases with Time Limit Exceeded status.
Run only test cases with Runtime Error status.
Run only test cases with Memory Limit Exceeded status.
Output Command
Run test cases and create an output file for each test case.Usage
Required Options
The target file to execute.Short flag:
-tExample: --target-file solution.cppPrefix for output files.Short flag:
-pExample: --prefix test_outputOptional Parameters
Maximum execution time allowed in milliseconds.Alias:
--toutExample: --timeout 3000Maximum memory allowed in bytes (default: 1GB).Alias:
--mlExample: --memory-limit 512000000Behavior Flags
Break execution if TLE or RTE status occurs.Short flag:
-bAlias: --breakSave the output of the target file for each test case.
Setup Command
Configure Quick Test settings and language configurations.Config Subcommand
Update configuration settings.Usage
Label of the configuration to update. Format:
Language.SETTINGShort flag: -lExample: --label "cpp.PROGRAM"Value to set for the configuration.Short flag:
-vExample: --value "g++"Examples
Reset Subcommand
Reset all settings to defaults.Usage
~/.quicktest/languages.config.json.
Example Command
Show usage examples for specific subcommands.Usage
Show examples for the stress subcommand.
Show examples for the cmp subcommand.
Show examples for the check subcommand.
Show examples for the output subcommand.
Show examples for the setup subcommand.
Exactly one subcommand flag must be specified.