grunt-lab

2.1.4 • Public • Published

grunt-lab Build Status

Dependencies Status DevDependencies Status PeerDependencies Status

Use the hapi.js lab test utility in Grunt.

Configuration

All configuration is optional. See the Lab documentation for more information about each parameter.

grunt-lab option Type Default Lab flag
files [glob] [ "test/**/*.js" ]
coverage boolean false -c
color boolean false -C
dryRun boolean false -d
nodeEnv string test -e
pattern string -g
global boolean false -G
identifier string -i
ignoreGlobals string -I
disableLeakDetection boolean false -l
timeout integer 2000 -m
reportFile string -o
parallel boolean false -p
reporter string console -r
silence boolean false -s
minCoverage integer -t
verbose boolean false -v

An example Gruntfile using grunt-lab may look like this:

"use strict";

module.exports = function (grunt) {

	grunt.initConfig({
		lab : {
			color       : true,
			coverage    : true,
			minCoverage : 100
		}
	});

	// Load plugins
	grunt.loadNpmTasks("grunt-lab");

	// Register tasks
	grunt.registerTask("default", [ "lab" ]);

};

It is not required to specify any configuration at all if you don't want to.

Contributing

There are only a few things to keep in mind when submitting a PR:

  1. linting and style guidelines are followed
  2. 100% test coverage
  3. all tests pass

Otherwise, the build will fail. :)

Readme

Keywords

Package Sidebar

Install

npm i grunt-lab

Weekly Downloads

2

Version

2.1.4

License

none

Last publish

Collaborators

  • wtcross