Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

grunt-ava

avajs345MIT0.19.0

Run AVA tests

gruntplugin, ava, test, runner, concurrent, parallel, fast, tape, tap, mocha, qunit, jasmine

readme

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