在 Windows 上的 Node.js 中运行 Expresso TDD [英] Running Expresso TDD in Node.js on Windows

查看:28
本文介绍了在 Windows 上的 Node.js 中运行 Expresso TDD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人能够让它发挥作用?

Has anyone been able to get this to work?

环境:

  • Windows 7 64 位
  • node.js v0.6.7
  • npm 1.1.0-beta-10
  • 快递 0.9.2

我已经从 zip 下载通过 npm 成功安装(在修改 package.json 以删除 node-jscoverage 依赖之后).'npm ls' 列出安装的 expresso.在克服此处描述的问题后通过注释掉对 SIGINT 的引用,expresso 将从 cmd 窗口执行.但是,当我实际尝试运行测试套件时,当它尝试打开第一个测试套件时会收到找不到模块"错误.任何帮助将不胜感激.

I've successfully installed via npm from zip download (after modifying package.json to remove node-jscoverage dependence). 'npm ls' lists expresso as installed. After overcoming the problem described here by commenting out the reference to SIGINT, expresso will execute from cmd window. However, when I actually attempt to run test suites, I get a 'Cannot find module' error when it tries to open the first test suite. Any help would be appreciated.

推荐答案

您是否考虑过使用 mocha?应该是expresso的继承者,同一个作者写的.

Have you considered using mocha? It's supposed to be expresso's successor, written by the same author.

这篇关于在 Windows 上的 Node.js 中运行 Expresso TDD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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