nodeunit-dataprovider
A quick solution for generating sets of repeating tests using an array of input data.
Node.js
To install:
npm install nodeunit-dataprovider
To use:
var dataprovider = ;
Example:
var dataprovider = ; exports'doubled result' = ; exports'doubled result with named doubles' = ;
$ nodeunit test.js
test.js
✔ doubled result - #0: {"input":4,"output": ...
✔ doubled result - #1: {"input":8,"output": ...
✔ doubled result - #2: {"input":16,"output" ...
✔ doubled result with named doubles - #0: Set1
✔ doubled result with named doubles - #1: Set2
✔ doubled result with named doubles - #2: Set3
OK: 6 assertions (14ms)