Node.js 单元测试框架 NodeUnit
openkk
13年前
NodeUnit 是 Node.js 的单元测试框架,基于 assert 模块。
Simple syntax, powerful tools. Nodeunit provides easy async unit testing for node.js and the browser.
- Simple to use
- Just export the tests from a module
- Works with node.js and in the browser.
- Helps you avoid common pitfalls when testing asynchronous code
- Easy to add test cases with setUp and tearDown functions if you wish
- Flexible reporters for custom output, built-in support for HTML and jUnit XML
- Allows the use of mocks and stubs