title: Passing parameters to Mocha
body: <p>I am using Mocha programatically as described here:</p>
  
  <p><a href="https://github.com/visionmedia/mocha/wiki/Using-mocha-programmatically" rel="nofollow">https://github.com/visionmedia/mocha/wiki/Using-mocha-programmatically</a></p>
  
  <p>Very similarly to how the examples are written:</p>
  
  <p>test-runner.js:</p>
  
  <pre><code>var Mocha = require('mocha');
  var mocha = new Mocha();
  mocha.addFile('spec.js');
  mocha.run(function() {});
  </code></pre>
  
  <p>Inside the test spec, I am spinning up a headless browser to run the test on a specific url:</p>
  
  <p>spec.js:</p>
  
  <pre><code>var Browser = new Browser();
  browser.visit(url, function(){});
  </code></pre>
  
  <p>Is there a way to pass the desired url from test-runner.js to spec.js?</p>