title: Running mocha test in subfolders
body: <p>I am using Sails.js for some project. Now I wrote some unit tests. My test folder hierarchy is like following:</p>
  
  <pre><code>/test
      bootstrat.test.js
      mocha.opts
      /unit
          /controller
              User.js
              Representative.js
          /model
              User.js
              Representative.js
          /service
              Utility.js
  </code></pre>
  
  <p>For testing I now have to run all these following commands:</p>
  
  <pre><code>$ mocha test/unit/controller
  $ mocha test/unit/model
  $ mocha test/unit/service
  </code></pre>
  
  <p>But this is time consuming and too manual. I wanted to run all these tests with just one command and searched Google. I tried running <code>mocha --recursive test</code>. But it's not working. It results in following error -</p>
  
  <pre><code>  1) "before all" hook
    2) "after all" hook
  
    0 passing (2s)
    2 failing
  
    1)  "before all" hook:
       Error: timeout of 2000ms exceeded
        at null.&lt;anonymous&gt; (/usr/local/lib/node_modules/mocha/lib/runnable.js:159:19)
        at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
  
    2)  "after all" hook:
       TypeError: Cannot call method 'lower' of undefined
        at Context.&lt;anonymous&gt; (/home/gladiator/Codes/rms-generic-web/test/bootstrap.test.js:21:9)
        at Hook.Runnable.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:218:15)
        at next (/usr/local/lib/node_modules/mocha/lib/runner.js:259:10)
        at Object._onImmediate (/usr/local/lib/node_modules/mocha/lib/runner.js:276:5)
        at processImmediate [as _immediateCallback] (timers.js:345:15)
  </code></pre>
  
  <p>Is there a way in which I can run all these tests with just one command?</p>