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
Last updated a year ago by voces .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install verit-test 
SYNC missed versions from official npm registry.

verit-test

Build Status NPM license Coverage Status

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

# 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:

it( "my test", test => {

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

} );

Configuration can also be passed per-suite or per-test:

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]

Current Tags

  • 3.1.0                                ...           latest (a year ago)

7 Versions

  • 3.1.0                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |