npm.io
0.4.0 • Published 11 years ago

asimov-test

Licence
MIT
Version
0.4.0
Deps
9
Vulns
6
Weekly
0
Stars
1

asimov-test

NPM version Code Climate Dependency Status

Unit and integration testing toolkit for asimov.js

How to use

Install from NPM

$ npm install --saveDev asimov-test
Create a test file
var test = require('asimov-test');

test('myAwesomeTest', function (test) {

  test.spec(function () {

    test.it('should be true', function () {
      expect(true).to.be.true;
    });
  });
});
Add test command to your package.json
...
"scripts": {
  "test": "node node_modules/asimov-test/bin/test"
}
...
Run the tests
$ npm test

Or just use the executable directly...

$ node node_modules/asimov-test/bin/test
Reporters

By default, the mocha dot reporter is used, but you can pass a flag to use any of the reporters that ships with mocha, or that you have installed with npm.

$ node node_modules/asimov-test/bin/test --spec

Made by Adam Renklint, Berlin 2014. MIT licensed.