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.

17 lines
341 B

var childProcess = require("child_process")
var path = require("path")
var env = process.env
env.NODE_ENV = "test"
var options = {
env: env,
stdio: "inherit",
}
var command = path.join(".", "node_modules", ".bin", "mocha")
if (process.platform == "win32") command += ".cmd"
try {
childProcess.spawn(command, options)
} catch (ex) {}