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

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

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