Organizational Research By

Surprising Reserch Topic

mocha requires make cant find a make exe that works on windows


mocha requires make cant find a make exe that works on windows  using -'windows,node.js,mocha'

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

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

Everything works fine on my Mac.

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

It can't just be me

Here's the makefile:

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

.PHONY: test


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).

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)


EDIT 3/25/12


In the end, the easiest way to deal with this is to use Cygwin and ensure that the developer packages for Cygwin are installed. In PowerShell I did Set-Alias make "c:\dev\utils\cygwin\bin\make.exe" and now make test works on standard Mocha Makefiles.

    
asked Sep 22, 2015 by sameer rathore
0 votes
6 views



Related Hot Questions



Government Jobs Opening


...