atcoder-auto-tester

Crates.ioatcoder-auto-tester
lib.rsatcoder-auto-tester
version0.9.2
sourcesrc
created_at2020-03-02 10:36:45.619233
updated_at2020-10-24 15:09:12.542879
descriptionAn auto tester for AtCoder. This tool monitors files and automatically runs tests when it detects file changes.
homepage
repositoryhttps://github.com/arkark/atcoder-auto-tester
max_upload_size
id214421
size32,243
Takeshi Kaneko (arkark)

documentation

README

atcoder-auto-tester

license: MIT GitHub version crates.io

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

  1. Create .config.toml.
  2. Execute: $ atcoder-auto-tester.
  3. 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

MIT

Commit count: 20

cargo fmt