Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avajs/gulp-ava
Run AVA tests
https://github.com/avajs/gulp-ava
ava gulp gulp-plugin nodejs
Last synced: 3 months ago
JSON representation
Run AVA tests
- Host: GitHub
- URL: https://github.com/avajs/gulp-ava
- Owner: avajs
- License: mit
- Archived: true
- Created: 2015-09-07T07:59:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-05T12:11:43.000Z (over 3 years ago)
- Last Synced: 2024-06-15T04:41:16.387Z (5 months ago)
- Topics: ava, gulp, gulp-plugin, nodejs
- Language: JavaScript
- Homepage: https://ava.li
- Size: 37.1 KB
- Stars: 56
- Watchers: 8
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-ava - gulp-ava - Run tests with Gulp. (Packages)
README
# gulp-ava [![Build Status](https://travis-ci.org/avajs/gulp-ava.svg?branch=master)](https://travis-ci.org/avajs/gulp-ava)
> Run [AVA](https://ava.li) tests
## Install
```
$ npm install --save-dev gulp-ava
```## Usage
```js
const gulp = require('gulp');
const ava = require('gulp-ava');exports.default = () => (
gulp.src('test.js')
// `gulp-ava` needs file paths, so you can't have any plugins before it
.pipe(ava({verbose: true}))
);
```## API
### ava(options?)
This plugin adheres to AVA [options](https://github.com/avajs/ava#configuration) in package.json. You can also specify options in the plugin, as seen above, but prefer the package.json approach whenever possible.
`gulp-ava` specific options:
#### silent
Type: `boolean`
Default: `false`Only print output on failure.
#### nyc
Type: `boolean`
Default: `false`Run AVA with [`nyc`](https://github.com/istanbuljs/nyc). You must have `nyc` as a devDependency. `nyc` [options](https://github.com/istanbuljs/nyc#configuring-nyc) can be defined in package.json.