Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avajs/grunt-ava
Run AVA tests
https://github.com/avajs/grunt-ava
ava grunt grunt-plugin nodejs
Last synced: 3 months ago
JSON representation
Run AVA tests
- Host: GitHub
- URL: https://github.com/avajs/grunt-ava
- Owner: avajs
- License: mit
- Archived: true
- Created: 2015-09-07T08:05:07.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-03T20:14:19.000Z (about 7 years ago)
- Last Synced: 2024-04-14T08:00:46.129Z (7 months ago)
- Topics: ava, grunt, grunt-plugin, nodejs
- Language: JavaScript
- Homepage: https://ava.li
- Size: 22.5 KB
- Stars: 7
- Watchers: 12
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-ava - grunt-ava - Run tests with Grunt. (Packages)
README
# grunt-ava [![Build Status](https://travis-ci.org/avajs/grunt-ava.svg?branch=master)](https://travis-ci.org/avajs/grunt-ava)
> Run [AVA](https://ava.li) tests
Please consider if you really need Grunt for this. Using a [npm run script](https://github.com/avajs/ava#initialize) would be better.
## Install
```
$ npm install --save-dev grunt-ava
```## Usage
```js
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasksgrunt.initConfig({
ava: {
test: ['test.js'],
nycTest: {
options: {
verbose: true,
nyc: true
},
files: {
src: ['test.js']
}
}
}
});grunt.registerTask('default', ['ava']);
```Adheres to AVA [options](https://github.com/avajs/ava#configuration) in package.json. You can also specify options in the plugin as seen above.
You can specify `nyc: true` in the plugin to 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.
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)