A simple diff based test suite for executable programs with outputs
npm install suite
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();
});
- 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.
Here is a list of Contributors
I accept pull requests and guarantee a reply back within a day
MIT/X11
Report here. Guaranteed reply within a day.
Pavan Kumar Sunkara ([email protected])