Testrus

Aids in testing your programs in informatics competitions.

Install it with gem install testrus.

Currently only tested on OS X.

Usage

testrus looks for input and output file pairs in the directory you run it from. E.g. if:

$ ls
input.1
input.2
output.1
output.2

You have two tests. The expected output is in the output file. To test your program, simply run testrus from this directory with the command to run your program, then the test data will be piped to your program via STDIN.

If the runtime exceeds a second or the memory usage ever exceeds 64mb the test will also appear failed.

Screenshots