Skip to content

udontur/umpire

Repository files navigation


Umpire

⚖️ Turn testing into your winning edge!

Release Number GitHub Actions Status Static Badge

Umpire is a quick and intuitive TUI tool that eliminates all the hassle for testing your code in competitive programming. All you need to do is input your test case once, layout your folder structure, and umpire will take it from there!

Umpire turns testing into your winning edge!

Demo Video

Installation

Umpire is available for both Linux and MacOS.

Note

To avoid large package size, please install the compilers that you use:

gcc # C++, installed by default
python3 # Python
go # Golang
zulu # Java
rustc # Rust

Nix (Linux and MacOS)

Umpire is available via Nix flakes.

inputs.umpire.packages."${system}".default

AUR (Arch Linux)

Use an AUR helper of your choice to get Umpire (like yay or paru):

yay -S umpire

Other Linux Distros

Run the following command in your terminal:

git clone https://github.com/udontur/umpire && cd umpire && sudo make install

Usage

See all details in the documentations.

Prerequisite

Organize your code directory as follows:

task-a/ # The folder that stores everything
└─ main.cpp # File name must be "main"
└─ testcase # Exact name
  ├─ ABC.in
  ├─ ABC.out 

Running Umpire

Run umpire in the current directory:

um

Or specify a directory:

um task-a

License

MIT License - See LICENSE for details.