You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
456 B
18 lines
456 B
// test/mocha/node-suite.js |
|
|
|
// This runs with mocha programmatically rather than from the command line. |
|
// how-to-with-comments taken from https://github.com/itaylor/qunit-mocha-ui |
|
|
|
//Load mocha |
|
var Mocha = require("mocha"); |
|
|
|
//Tell mocha to use the interface. |
|
var mocha = new Mocha({ui:"qunit", reporter:"spec"}); |
|
|
|
//Add your test files |
|
mocha.addFile("./test/mocha/suite.js"); |
|
|
|
//Run your tests |
|
mocha.run(function(failures){ |
|
process.exit(failures); |
|
}); |