Skip to content
A simple diff based test suite for executable programs with outputs
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
.npmignore
README.md
package.json

README.md

suite

A simple diff based test suite for executable programs with outputs

Installation

npm install suite

Usage

Let's say I want to test genome program and I have test directory at '/home/me/test' with structure

├── 001
├── 002
├── 003
└─┬ 004
  ├── answer
  ├── input
  └── program
var suite = require('suite');

var genome = suite('/usr/bin/genome', { prefix: '/home/me/test/' });

genome.run(4, function () {
  genome.statsput();
});

Options

  • prefix: Prefix for the test directory
  • program: The filename of program in test directory (default: program)
  • input: The filename of input in test directory (default: input)
  • answer: The filename of answer in test directory (default: answer)
  • rjust: The right padding if test case is number (default: 3)

If you like this project, please watch this and follow me.

Contributors

Here is a list of Contributors

TODO

I accept pull requests and guarantee a reply back within a day

License

MIT/X11

Bug Reports

Report here. Guaranteed reply within a day.

Contact

Pavan Kumar Sunkara (pavan.sss1991@gmail.com)

Follow me on github, twitter

Something went wrong with that request. Please try again.