Socket
Book a DemoInstallSign in
Socket

tankjs-test

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tankjs-test

TANKJS-TEST ===

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

TANKJS-TEST

NPM version

Clouda Tankjs test extension

安装

$ sudo npm install tankjs tankjs-test -g

使用

###创建测试目录

在当前项目文件夹下创建test目录,并编写单测代码(使用mocha风格):

describe('test title', function () {
    it('unit name', function (next) {
        doSomething.done(next);
    });
});

###执行测试

$ tank test

###加载其它组件

您可以选择性加载其它组件,如tankjs-coverage。使用--report参数来启动一个http服务:

$ tank test --cov --report=8080

访问地址:http://hostname:8080/tankjs-coverage/report.html以查看覆盖率结果

官网

访问 clouda+官网获得更多信息

FAQs

Package last updated on 28 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.