0.2.1 • Published 10 years ago

tape-suite v0.2.1

Weekly downloads
11
License
MIT
Repository
-
Last release
10 years ago

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
0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago