avajs / grunt-ava

Run AVA tests

Home Page:https://ava.li

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Run AVA tests

https://ava.li

License:MIT License


Languages

Language:JavaScript 100.0%