Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple diff based test suite for executable programs with outputs

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .npmignore
Octocat-spinner-32 README.md
Octocat-spinner-32 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.