tape 介绍
tape是substack写的测试框架
var test = require('tape').test;
test('equivalence',function(t) {
t.equal(1,1,'these two numbers are equal');
t.end();
});
tape是非常简单的测试框架,核心价值观是”Tests are code”,所以你可以像代码一样跑测试,
比如
node test/test.js
写个脚本就无比简单了。当然如果你想加’test runner’ 库也有现成的。
网站地址:https://github.com/substack/tape
GitHub:https://github.com/substack/tape
网站描述:像代码一样跑测试
tape
官方网站:https://github.com/substack/tape
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。