Pre Exam Test Practice
Ask a Question
Advertise on boostr.in
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:
¬†¬†¬†¬†@./node_modules/.bin/mocha -u tdd -R spec
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)
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.
Sep 22, 2015
to add a comment.
Related Hot Questions
Government Jobs Opening