摩卡咖啡需要做.找不到适用于Windows的make.exe [英] Mocha requires make. Can't find a make.exe that works on Windows

查看:70
本文介绍了摩卡咖啡需要做.找不到适用于Windows的make.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Mocha(Node.js的测试框架)使用make.

Mocha (test framework for Node.js) uses make.

在我的生命中,我找不到适用于Windows的兼容make.exe.

For the life of me I can't find a compatible make.exe for Windows.

在Mac上一切正常.

我尝试使用VS的nmake.exe和一个make.exe,我发现它是从Unix移植的.但是它们都是不兼容的.

I've tried using VS's nmake.exe and a make.exe I found that was ported from Unix. But they are all incompatible.

不能只是我

这是makefile:

Here's the makefile:

test:
    @./node_modules/.bin/mocha -u tdd -R spec

.PHONY: test

在上制作Barfs.在PHONY中,即使删除它,它也永远不会运行mocha命令(或者至少没有输出).

make barfs on the . in PHONY, and even if I remove it, it never runs the mocha command (or at least there's no output).

运行./node_modules/.bin/mocha -u -tdd -R spec直接给我我的测试报告:

Running ./node_modules/.bin/mocha -u -tdd -R spec directly gives me my test report:

first suite -
  ? ten should always be equal to 9+1
  ? zero is less all positive numbers
  ? There is no i in team

 ? 3 tests complete (8ms)

修改3/25/12

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