MCPcopy Create free account
hub / github.com/dresende/node-orm2 / runTests

Function runTests

test/run.js:33–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33function runTests() {
34 if (common.protocol() == 'mongodb' && common.nodeVersion().major > 6) {
35 console.warn(chalk.red("MongoDB 1.x doesn't work with node 7, 8 or newer."));
36 console.warn(chalk.red("Tests will not run."));
37 console.warn(chalk.red("If you would like this to work, please submit a pull request."));
38 return;
39 }
40
41 glob.sync(location).forEach(function (file) {
42 if (!shouldRunTest(file)) return;
43 mocha.addFile(file);
44 });
45
46 logging.info("Testing **%s**", common.getConnectionString());
47
48 mocha.run(function (failures) {
49 process.exit(failures);
50 });
51}
52
53runTests();

Callers 1

run.jsFile · 0.85

Calls 3

shouldRunTestFunction · 0.85
syncMethod · 0.80
runMethod · 0.80

Tested by

no test coverage detected