Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (42 sloc) 1.409 kb
eb825ac @pksunkara Remove module testing
authored
1 # suite
174f417 @pksunkara Initial commit
authored
2
3 A simple diff based test suite for executable programs with outputs
4
5 ## Installation
6 ```
7 npm install suite
8 ```
9
10 ## Usage
11
10bbfa4 @pksunkara Added docs
authored
12 Let's say I want to test `genome` program and I have test directory at '/home/me/test' with structure
13
14 ```
15 ├── 001
16 ├── 002
17 ├── 003
18 └─┬ 004
19 ├── answer
20 ├── input
21 └── program
22 ```
23
174f417 @pksunkara Initial commit
authored
24 ```js
25 var suite = require('suite');
10bbfa4 @pksunkara Added docs
authored
26
27 var genome = suite('/usr/bin/genome', { prefix: '/home/me/test/' });
28
29 genome.run(4, function () {
30 genome.statsput();
31 });
174f417 @pksunkara Initial commit
authored
32 ```
33
10bbfa4 @pksunkara Added docs
authored
34 ### Options
35
36 * __prefix__: Prefix for the test directory
37 * __program__: The filename of program in test directory (_default:_ program)
38 * __input__: The filename of input in test directory (_default:_ input)
39 * __answer__: The filename of answer in test directory (_default:_ answer)
40 * __rjust__: The right padding if test case is number (_default:_ 3)
41
174f417 @pksunkara Initial commit
authored
42 If you like this project, please watch this and follow me.
43
44 ## Contributors
45 Here is a list of [Contributors](http://github.com/pkumar/node-suite/contributors)
46
47 ### TODO
48
49 __I accept pull requests and guarantee a reply back within a day__
50
51 ## License
52 MIT/X11
53
54 ## Bug Reports
55 Report [here](http://github.com/pkumar/node-suite/issues). __Guaranteed reply within a day__.
56
57 ## Contact
58 Pavan Kumar Sunkara (pavan.sss1991@gmail.com)
59
60 Follow me on [github](https://github.com/users/follow?target=pkumar), [twitter](http://twitter.com/pksunkara)
Something went wrong with that request. Please try again.