Created
March 15, 2012 00:13
-
-
Save arian/2040623 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mocha = require('mocha'); | |
// setup | |
var suite = new mocha.Suite('', new mocha.Context), | |
utils = mocha.utils, | |
Reporter = mocha.reporters.Spec, | |
ui = mocha.interfaces['bdd']; | |
ui(suite); | |
suite.emit('pre-require', global); | |
var runner = new mocha.Runner(suite); | |
var reporter = new Reporter(runner); | |
require('./test1'); | |
require('./test2'); | |
// run | |
runner.run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment