asimov-test

2019-09-09 admin

asimov-test是什么

什么是asimov-test,Testing toolkit for asimov.js

asimov-test使用教程帮助文档

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.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-74704.html

文章标题:asimov-test

回到顶部