QUnitjQuery 单元测试框架
QUnit 是一个功能强大、易于使用的 JavaScript 单元测试框架。它被 jQuery 项目用于测试代码和插件,它能够测试任何通用的 JavaScript 代码(甚至能够在服务器端测试 JavaScript 代码)。
示例代码:
test("a basic test example", function() { ok( true, "this test is fine" ); var value = "hello"; equals( "hello", value, "We expect value to be hello" ); }); module("Module A"); test("first test within module", function() { ok( true, "all pass" ); }); test("second test within module", function() { ok( true, "all pass" ); }); module("Module B"); test("some other test", function() { expect(2); equals( true, false, "failing test" ); equals( true, true, "passing test" ); });
测试结果页面:
评论
NodeUnitNode.js 单元测试框架
NodeUnit是Node.js的单元测试框架,基于assert模块为node.js和浏览器提供了简单的异步单元测试。特征使用简单只需从模块中导出测试与node.js一起使用并在浏览器中帮助您在测试异
NodeUnitNode.js 单元测试框架
0
zMMIXMMIX单元测试框架
zMMIX是一个MMIX单元测试框架:用于测试TAOCP里面的MMIX程序特点:简单的case编写。用户不再需要自己编写:Main代码去运行、查看一段MMIX程序的运行结果。测试数据驱动。用户主要关心
zMMIXMMIX单元测试框架
0
xUnit.net.NET单元测试框架
NUnit 的创造者JimNewkirk公布了一个新的单元测试框架,叫做xUnit.net。这个以NUnit接班人自许的新框架打算消除NUnit的错误和缺点,并打算在框架中加入一些最佳实践和扩展能力。
xUnit.net.NET单元测试框架
0
PyUnitPython 单元测试框架
PyUnit是Python版JUnit,一款Python单元测试框架。PyUnit可以在Python1.5.2及更高版本上运行。作者已经在Linux(Redhat6.0和6.1以及DebianPota
PyUnitPython 单元测试框架
0