2.1.4 • Published 9 years ago

grunt-lab v2.1.4

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

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 optionTypeDefaultLab flag
filesglob "test/*/.js"
coveragebooleanfalse-c
colorbooleanfalse-C
dryRunbooleanfalse-d
nodeEnvstringtest-e
patternstring-g
globalbooleanfalse-G
identifierstring-i
ignoreGlobalsstring-I
disableLeakDetectionbooleanfalse-l
timeoutinteger2000-m
reportFilestring-o
parallelbooleanfalse-p
reporterstringconsole-r
silencebooleanfalse-s
minCoverageinteger-t
verbosebooleanfalse-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. :)

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

10 years ago

2.0.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.0

10 years ago