Run AVA tests
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tasks
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
fixture.js
gruntfile.js
license
package.json
readme.md

readme.md

grunt-ava Build Status

Run AVA tests

Please consider if you really need Grunt for this. Using a npm run script would be better.

Install

$ npm install --save-dev grunt-ava

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	ava: {
		test: ['test.js'],
		nycTest: {
			options: {
				verbose: true,
				nyc: true
			},
			files: {
				src: ['test.js']
			}
		}
	}
});

grunt.registerTask('default', ['ava']);

Adheres to AVA options 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. You must have nyc as a devDependency. nyc options can be defined in package.json.

License

MIT © Sindre Sorhus