fixture-cases-extract

1.0.0 • Public • Published

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(){
    // ...
  })
})

Readme

Keywords

Package Sidebar

Install

npm i fixture-cases-extract

Weekly Downloads

1

Version

1.0.0

License

WTFPL

Last publish

Collaborators

  • douglasduteil