https://github.com/zswang/gulp-examplejs
A tool for converting sample code into test cases
https://github.com/zswang/gulp-examplejs
example examplejs unittest
Last synced: 10 months ago
JSON representation
A tool for converting sample code into test cases
- Host: GitHub
- URL: https://github.com/zswang/gulp-examplejs
- Owner: zswang
- Created: 2016-05-16T10:00:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-21T10:16:49.000Z (over 9 years ago)
- Last Synced: 2024-12-13T09:39:11.597Z (about 1 year ago)
- Topics: example, examplejs, unittest
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]
gulp-examplejs
-----
> A tool for converting example code into test cases with [examplejs](https://github.com/zswang/examplejs).
## Installation
Install package with NPM and add it to your development dependencies:
`npm install --save-dev gulp-examplejs`
## Usage
```javascript
var examplejs = require('gulp-examplejs');
gulp.task('dist', function() {
return gulp.src('lib/*.js')
.pipe(examplejs())
.pipe(gulp.dest('dist'));
});
```
## Options
- `desc`
Test case description
- `timeout`
Test case timeout
- `head`
Include head filen
- `header`
Include head text
## License
MIT © [zswang](http://weibo.com/zswang)
[npm-url]: https://npmjs.org/package/gulp-examplejs
[npm-image]: https://badge.fury.io/js/gulp-examplejs.svg
[travis-url]: https://travis-ci.org/zswang/gulp-examplejs
[travis-image]: https://travis-ci.org/zswang/gulp-examplejs.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/gulp-examplejs?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/gulp-examplejs/badge.svg?branch=master&service=github