asimov-test

0.4.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i asimov-test

Weekly Downloads

0

Version

0.4.0

License

MIT

Last publish

Collaborators

  • adamrenklint