3 releases
0.9.2 | Oct 24, 2020 |
---|---|
0.9.1 | Mar 2, 2020 |
0.9.0 | Mar 2, 2020 |
#8 in #monitors
19KB
464 lines
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 👍
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++
command = "sh -c 'g++ {}.cpp && ./a.out'"
file_name = "{}.cpp"
task_url = "https://atcoder.jp/contests/agc001/tasks/agc001_{}"
D
command = "rdmd {}.d"
file_name = "{}.d"
task_url = "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]
License
Dependencies
~5–13MB
~151K SLoC