title: Mocha requires make. Can't find a make.exe that works on Windows
body: <p>Mocha (test framework for Node.js) uses make.</p>
  
  <p>For the life of me I can't find a compatible make.exe for Windows. </p>
  
  <p>Everything works fine on my Mac.</p>
  
  <p>I've tried using VS's nmake.exe and a make.exe I found that was ported from Unix. But they are all incompatible. </p>
  
  <p>It can't just be me</p>
  
  <p>Here's the makefile:</p>
  
  <pre><code>test:
      @./node_modules/.bin/mocha -u tdd -R spec
  
  .PHONY: test
  </code></pre>
  
  <p>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).</p>
  
  <p>Running <code>./node_modules/.bin/mocha -u -tdd -R spec</code> directly gives me my test report:</p>
  
  <pre><code>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)
  </code></pre>
  
  <h2>EDIT 3/25/12</h2>
  
  <ul>
  <li>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 <code>Set-Alias make "c:\dev\utils\cygwin\bin\make.exe"</code> and now <code>make test</code> works on standard Mocha Makefiles.</li>
  </ul>