node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


Repeatedly run mocha test with varied parameters


Repeatedly run a mocha test with varying parameters.

var testAll = require('chocolate-factory'),
    thingsToTest = [{
      description: 'should return bar with argument foo'
      argument: 'foo'
      returnValue: 'bar'
 testAll(thingsToTest).with(function(testDepiction) {
  • test depictions must have a description parameter
  • test functions must have testDepicition as their first parameter
  • test functions with two parameters will have mocha's done put into the second parameter
  • only the mocha bdd interface is supported
  • Support something other than bdd interface