asimov-test
v0.4.0
Published
Testing toolkit for asimov.js
Downloads
4
Readme
asimov-test
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.