Node.js单元测试 [英] Node.js Unit Testing

查看:74
本文介绍了Node.js单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前是否有任何好的node.js(服务器端js)单元测试框架?我正在寻找比提供的Assert模块更深的东西.

Are there any good node.js (server side js) unit testing frameworks currently out there? I'm looking for something a little deeper than the Assert module provided.

推荐答案

我最终使用了 node-unit node-unit 并对此感到非常满意.

I ended up using node-unit and am really happy with it.

我最初使用的是 Expresso ,但是它并行运行测试的事实引起了一些问题. (例如,在这种情况下,使用数据库固定装置将无法正常工作.)

I was using Expresso originally but the fact that it runs tests in parallel caused a few problems. (For example using database fixtures doesn't work well in this situation).

这篇关于Node.js单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆