For those who tired of testing.
![npm install tst](https://nodei.co/npm/tst.png?mini=true)
var test = require('tst')
var assert = require('assert');
test('Test trivial things', function() {
var success = true;
assert.equal(success, true);
});
test.skip('Do not test unwanted things', function () {
var $ = require('jquery');
});
test('Group tests', function () {
test('A', function () {
});
test('B', function () {
});
});
test.only('Test of interest', function () {
});
test('Async stuff', function (done) {
this.timeout(3000);
setTimeout(done, 2100);
});
Run in node: $ node ./test.js
![Terminal view Terminal](https://github.com/dy/tst/raw/HEAD/terminal.png?raw=true)
or in browser: $ beefy ./test.js
.
![Browser view Browser](https://github.com/dy/tst/raw/HEAD/console.png?raw=true)
If you’ve changed your mind, just return to mocha: var test = it;
.
Related
ava — futuristic test runner by @sindresohrus.
mocha — vintage test runner by @tj.
tape — Test Anything Protocol by @substack.
tap — Test Anything Protocol by @isaacs