<commit_before>![lab Logo](https://raw.github.com/hapijs/lab/master/images/lab.png)

Node test utility

[![Build Status](https://secure.travis-ci.org/hapijs/lab.svg)](http://travis-ci.org/hapijs/lab)

Lead Maintainer: [<NAME>](https://github.com/geek)

**lab** is sponsored by [Joyent](http://www.joyent.com/).


## Introduction

**lab** is a simple test utility for Node.js. Unlike other test utilities, lab uses only async/await features and includes everything you should expect from a modern Node.js test utility. Our goal with **lab** is to keep the execution engine as simple as possible, and not try to build an extensible framework.

**lab** works with any assertion library that throws an error when a condition isn't met.


## Command Line

**lab** supports the following command line options:
- `-a`, `--assert` - name of assert library to use. To disable assertion library set to `false`.
- `--bail` - terminate the process with a non-zero exit code on the first test failure. Defaults to `false`.
- `-c`, `--coverage` - enables code coverage analysis.
- `--coverage-path` - sets code coverage path.
- `--coverage-exclude` - sets code coverage excludes.
- `--coverage-all` - report coverage for all matched files, not just those tested.
- `--coverage-flat` - do not perform a recursive find of files for coverage report. Requires --coverage-all
- `--coverage-pattern` - only report coverage for files with the given pattern in the name. Requires --coverage-all
- `-C`, `--colors` - enables or disables color output. Defaults to console capabilities.
- `-d`, `--dry` - dry run. Skips all tests. Use with `-v` to generate a test catalog. Defaults to `false`.
- `-e`, `--environment` - value to set the `NODE_ENV` environment variable to, defaults to 'test'.
- `-f`, `--flat` - do not perform a recursive load of test files within the test directory.
- `-g`, `--grep` - only run tests matching the given pattern which is internally compiled to a RegExp.<commit_msg>Add note on coverage-pattern default<commit_after>![lab Logo](https://raw.github.com/hapijs/lab/master/images/lab.png)

Node test utility

[![Build Status](https://secure.travis-ci.org/hapijs/lab.svg)](http://travis-ci.org/hapijs/lab)

Lead Maintainer: [<NAME>](https://github.com/geek)

**lab** is sponsored by [Joyent](http://www.joyent.com/).


## Introduction

**lab** is a simple test utility for Node.js. Unlike other test utilities, lab uses only async/await features and includes everything you should expect from a modern Node.js test utility. Our goal with **lab** is to keep the execution engine as simple as possible, and not try to build an extensible framework.

**lab** works with any assertion library that throws an error when a condition isn't met.


## Command Line

**lab** supports the following command line options:
- `-a`, `--assert` - name of assert library to use. To disable assertion library set to `false`.
- `--bail` - terminate the process with a non-zero exit code on the first test failure. Defaults to `false`.
- `-c`, `--coverage` - enables code coverage analysis.
- `--coverage-path` - sets code coverage path.
- `--coverage-exclude` - sets code coverage excludes.
- `--coverage-all` - report coverage for all matched files, not just those tested.
- `--coverage-flat` - do not perform a recursive find of files for coverage report. Requires `--coverage-all`
- `--coverage-pattern` - only report coverage for files with the given pattern in the name. Defaults to `pattern`. Requires `--coverage-all`
- `-C`, `--colors` - enables or disables color output. Defaults to console capabilities.
- `-d`, `--dry` - dry run. Skips all tests. Use with `-v` to generate a test catalog. Defaults to `false`.
- `-e`, `--environment` - value to set the `NODE_ENV` environment variable to, defaults to 'test'.
- `-f`, `--flat` - do not perform a recursive load of test files within the test directory.
- `-g`, `--grep` - only run tests matching the given pattern which is internally compiled to a RegExp.
{'fraction_non_alphanumeric': 0.12906453226613307, 'fraction_numerical': 0.0, 'mean_word_length': 3.6826697892271665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1931762', 'n_tokens_mistral': 1178, 'n_tokens_neox': 1151, 'n_words': 510}