# verit-test

> [![Build Status](https://travis-ci.org/voces/verit-test.svg?branch=master)](https://travis-ci.org/voces/verit-test) [![NPM](https://img.shields.io/npm/v/verit-test.svg)](https://www.npmjs.com/package/verit-test) [![license](https://img.shields.io/npm/l/ve

Latest version **3.1.0** (published 2019-04-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install verit-test
pnpm add verit-test
yarn add verit-test
bun add verit-test
```

Provides the commands `vt`, `vtest`, `verit-test`.

## 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 | 3.1.0 |
| Published | 2019-04-20 |
| First published | 2019-04-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 24.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | verit |
| Maintainers | voces |
| Keywords | test, esm, es6, module, import, mjs, mocha, vt, vtest |

## Links

- npm: https://www.npmjs.com/package/verit-test
- Repository: https://github.com/voces/verit-test
- Homepage: https://github.com/voces/verit-test#readme
- Issues: https://github.com/voces/verit-test/issues
- npm.io page: https://npm.io/package/verit-test

## Dependencies (4)

- [yargs](https://npm.io/package/yargs.md) ^13.2.2
- [fast-glob](https://npm.io/package/fast-glob.md) ^2.2.6
- [strip-ansi](https://npm.io/package/strip-ansi.md) ^5.2.0
- [yargs-unparser](https://npm.io/package/yargs-unparser.md) ^1.5.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 3.1.0 (latest) — 2019-04-20
- 3.0.1 — 2019-04-17
- 3.0.0 — 2019-04-17
- 2.0.0 — 2019-04-13
- 1.0.2 — 2019-04-08
- 1.0.1 — 2019-04-07
- 1.0.0 — 2019-04-07

## README

# verit-test

[![Build Status](https://travis-ci.org/voces/verit-test.svg?branch=master)](https://travis-ci.org/voces/verit-test)
[![NPM](https://img.shields.io/npm/v/verit-test.svg)](https://www.npmjs.com/package/verit-test)
[![license](https://img.shields.io/npm/l/verit-test.svg)]()
[![Coverage Status](https://coveralls.io/repos/github/voces/verit-test/badge.svg)](https://coveralls.io/github/voces/verit-test)

A basic JavaScript testing framework designed to work with `.mjs` files without need of a transpiler.

## Usage

### Installation

```
npm i -D verit-test
```

### Running


Aliases: `vt`, `vtest`, `verit-test`

```bash
# The entire test suite:
vt

# A glob:
vt test/**/*.test.mjs

# A specific file:
vt test/unit/src/App.test.mjs

# A specific test:
vt test/unit/src/App.test.mjs -l 126
```

### Configuration
Configuration can be passed directly to vt via command-line:
```
vt --foo=bar
```

And can be accessed via:
```js
it( "my test", test => {

    assert.equal( test.config.foo, "bar" );

} );
```

Configuration can also be passed per-suite or per-test:
```js
describe( "my suite", { foo: "bar" }, () => {

    it( "my test", { baz: "quz" }, test => {

        assert.equal( test.config.foo, "bar" );
        assert.equal( test.config.baz, "qux" );

    } );

} );
```

### CLI options

```
vt --help
Options:
  --help        Show help                                              [boolean]
  --version     Show version number                                    [boolean]
  --parallel    Option to run tests in parallel        [boolean] [default: true]
  --globals     Option to attach global test helpers  [boolean] [default: false]
  --line, -l    Lines of tests and suites to run                        [number]
```

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