atcoder-auto-tester
An auto tester for AtCoder. This CLI tool automatically downloads sample cases and runs tests when it detects file changes. Thanks online-judge-tools :+1:
Prerequisites
Installation
$ cargo install atcoder-auto-tester
Usage
- Create
.config.toml
. - Execute:
$ atcoder-auto-tester
. - Solve problems :)
.config.toml
For example, set .config.toml
for AGC001 as follows:
C++
= "sh -c 'g++ {}.cpp && ./a.out'"
= "{}.cpp"
= "https://atcoder.jp/contests/agc001/tasks/agc001_{}"
D
= "rdmd {}.d"
= "{}.d"
= "https://atcoder.jp/contests/agc001/tasks/agc001_{}"
Help
$ atcoder-auto-tester --help
atcoder-auto-tester 0.1.0
An auto tester for AtCoder. This tool monitors files and automatically runs tests when it detects file changes.
USAGE:
atcoder-auto-tester [FLAGS] [OPTIONS]
FLAGS:
--clean Remove the test directory
--login Login to AtCoder
-h, --help Print help information
-v, --version Print version information
OPTIONS:
-f, --config-file <FILE> Set a config file name [default: .config.toml]
-d, --test-directory <DIRECTORY> Set a directory for saving test cases [default: .test]
-t, --timeout <VALUE> Set a time limit for test execution [unit: seconds] [default: 5]