1.0.2 • Published 10 years ago

tap-inquirer v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

tap-inquire

Make a checklist and keep running tests until they pass

Purpose

The use of this module was originally for making installer checklists for ops, not for creating unit tests.

Example

var inquire = require('tap-inquire').inquire;
var fs = require('fs');
var path = require('path');
inquire(function (test, done) {
  test('test for stat() working on ./tap-inquire.test', function (t) {
      t.plan(2);
      t.pass('I pass. So, I am disabled');
      fs.stat(path.join(process.cwd(), 'tap-inquire.test'), function (err) {
        if (err) {
          t.fail('Unable to stat() ./tap-inquire.test, does it exist and have the right permissions?');
        }
        else {
          t.pass('Able to stat() ./tap-inquire.test');
        }
      })
      t.end();
    });
  done()
});
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago