Skip to content

Your friendly walrus, designed to test solutions to problems in informatics competitions.

License

Notifications You must be signed in to change notification settings

sirupsen/testrus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Planned

  • Linux support
  • More exact wall timing
  • DSL to declare tests
  • Easy input/output pair creation
  • Automatically fetch public tests for Codeforces tasks
  • Improve formatter (% passed, show diff, get inspired by other cool formatters)
  • Support before/after in the Run API
  • Different Runs for different OSs (e.g. some support RAM usage, others doesn't)

About

Your friendly walrus, designed to test solutions to problems in informatics competitions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages