1.0.0 • Published 9 years ago

fixture-cases-extract v1.0.0

Weekly downloads
2
License
WTFPL
Repository
github
Last release
9 years ago

fixture-cases-extract

Extract test target files from each case directories

Install

npm i fixture-cases-extract

Usage

var path = require('path')
var fixtureCasesExtract = require('fixture-cases-extract')

fixtureCasesExtract({
  basePath: path.join(__dirname, 'fixtures')
  fileMap: {
    actual: 'actual.json',
    expected: 'expected.json',
    options: 'options.json'
  }
})
.forEach(function (testCase) {
  // Mocha tes like
  it('should process' + testCase.name, function(){
    // ...
  })
})