Node.js 單元測試框架 NodeUnit

openkk 12年前發布 | 34K 次閱讀 Node.js JavaScript開發

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

項目主頁:http://www.baiduhome.net/lib/view/home/1333941949092

 本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!