Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/douglasduteil/fixture-cases-extract

Extract test target files from each case directories
https://github.com/douglasduteil/fixture-cases-extract

Last synced: about 1 month ago
JSON representation

Extract test target files from each case directories

Awesome Lists containing this project

README

        

# fixture-cases-extract

[![Build Status](https://travis-ci.org/douglasduteil/fixture-cases-extract.svg?branch=master)](https://travis-ci.org/douglasduteil/fixture-cases-extract)

> Extract test target files from each case directories

## Install

```sh
npm i fixture-cases-extract
```

## Usage

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