LocalMachinepacks.scaffoldTests()

Generate JSON test files for any machines in this local machinepack which don't already have them.

Usage

Hover over inputs/exits for more info.

var LocalMachinepacks = require('machinepack-localmachinepacks');


// Generate JSON test files for any machines in this local machinepack which don't already have them.

LocalMachinepacks.scaffoldTests({

dir: '/Users/mikermcneil/machinepack-foo/',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// The specified path is not the root directory of a machinepack

notMachinepack: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

dir required

The path to the machinepack (if path is not absolute, will be resolved from the current working directory)

'/Users/mikermcneil/machinepack-foo/'

Exits

error

An unexpected error occurred.

notMachinepack

The specified path is not the root directory of a machinepack

success

OK.