title: Code Coverage with Mocha in node.js
body: <p><strong>Intro</strong></p>
  
  <p>I have jscoverage installed and have setup a make command to generate the coverage data to app-cov and runs the tests.</p>
  
  <p>For this project I am using: node.js, mongoose, express, mocha and should.</p>
  
  <p><strong>Relevant files:</strong></p>
  
  <p>Makefile: <a href="http://pastie.org/3529374" rel="nofollow">http://pastie.org/3529374</a></p>
  
  <p>index.js: <a href="http://pastie.org/3529377" rel="nofollow">http://pastie.org/3529377</a></p>
  
  <p>test/models/location.test.js: <a href="http://pastie.org/3529401" rel="nofollow">http://pastie.org/3529401</a></p>
  
  <p>app/run.js: <a href="http://pastie.org/3529523" rel="nofollow">http://pastie.org/3529523</a></p>
  
  <p><strong>Problem</strong></p>
  
  <p>The output <code>coverage.html</code> file overview is empty. 0% 0 SLOC 0 files in overview.</p>
  
  <p>My assumption is that mocha is not recognizing or loading the coverage from app-cov. I've only written a single unit test for the location model. Is it the way I'm requiring the files in the test?</p>
  
  <p>I'm use to phpunit and it's configuration so I'm having a little trouble putting the test suite together. </p>
  
  <p>Ups to anyone who can recommend a solution or how tidy up my ugle code :)</p>