Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/douglasduteil/fixture-cases-extract
- Owner: douglasduteil
- Created: 2015-10-06T08:56:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-23T15:29:06.000Z (almost 7 years ago)
- Last Synced: 2024-11-16T06:50:22.428Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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(){
// ...
})
})
```