fixture-cases-extract
v1.0.0
Published
Extract test target files from each case directories
Downloads
2
Readme
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(){
// ...
})
})