tape-suite
Super simple test suites for tape.
Last updated 7 years ago by latentflip .
MIT · Original npm · Tarball · package.json
$ cnpm install tape-suite 
SYNC missed versions from official npm registry.

Tape-Suite

Super simple test suites for tape.

var suite = require('tape-suite');

suite('Test stuff', function (t) {
    t.beforeEach(function () {
        //do stuff before each test
    });

    t.afterEach(function () {
        //do stuff after each test
    });

    t.test('use like a normal tape test', function (t) {
        t.ok(true);
        t.end();
    });

    //also t.test.only
    t.test.only('only this test will run', function (t) {
        t.ok(false);
        t.end();
    });
});

Doesn't support:

  • Nested suites
  • Before/after all
  • Possibly more

Current Tags

  • 0.2.1                                ...           latest (7 years ago)

3 Versions

  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 2
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |