# grunt-lab

> Use the Spumko Lab test utility in Grunt.

Latest version **2.1.4** (published 2015-07-20) · 0 weekly downloads

## Install

```sh
npm install grunt-lab
pnpm add grunt-lab
yarn add grunt-lab
bun add grunt-lab
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.4 |
| Published | 2015-07-20 |
| First published | 2014-07-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Tyler Cross |
| Maintainers | wtcross |
| Keywords | gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-lab
- Repository: git@github.com:wtcross/grunt-lab
- Homepage: https://github.com/wtcross/grunt-lab
- Issues: https://github.com/wtcross/grunt-lab/issues
- npm.io page: https://npm.io/package/grunt-lab

## Recent versions

- 2.1.4 (latest) — 2015-07-20
- 2.1.3 — 2015-07-13
- 2.1.2 — 2014-11-16
- 2.1.1 — 2014-10-02
- 2.0.0 — 2014-09-25
- 1.0.4 — 2014-08-27
- 1.0.3 — 2014-07-24
- 1.0.2 — 2014-07-24
- 1.0.1 — 2014-07-23
- 1.0.0 — 2014-07-23

## README

grunt-lab [![Build Status](https://travis-ci.org/wtcross/grunt-lab.svg)](https://travis-ci.org/wtcross/grunt-lab)
=========

[![Dependencies Status](https://david-dm.org/wtcross/grunt-lab.png)](https://david-dm.org/wtcross/grunt-lab)
[![DevDependencies Status](https://david-dm.org/wtcross/grunt-lab/dev-status.png)](https://david-dm.org/wtcross/grunt-lab#info=devDependencies)
[![PeerDependencies Status](https://david-dm.org/wtcross/grunt-lab/peer-status.png)](https://david-dm.org/wtcross/grunt-lab#info=peerDependencies)

Use the [hapi.js lab](https://github.com/hapijs/lab) test utility in Grunt.

### Configuration
All configuration is optional. See the Lab [documentation](https://github.com/spumko/lab) 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. :)

---
_Source: https://npm.io/package/grunt-lab · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
