forerunnerdb
Version:
A NoSQL document store database for browsers and Node.js.
52 lines (38 loc) • 1.03 kB
JavaScript
var testrunner = require("qunit");
// Defaults:
testrunner.setup({
// logging options
log: {
// log assertions overview
assertions: true,
// log expected and actual values for failed tests
errors: true,
// log tests overview
tests: true,
// log summary
summary: true,
// log global summary (all files)
globalSummary: true,
// log coverage
coverage: true,
// log global coverage (all files)
globalCoverage: true,
// log currently testing code file
testing: true
},
// run test coverage tool
coverage: false,
// define dependencies, which are required then before code
deps: null,
// define namespace your code will be attached to on global['your namespace']
namespace: null,
// max amount of ms child can be blocked, after that we assume running an infinite loop
maxBlockDuration: 2000
});
testrunner.run({
code: "js/unitTests/tests/testsNodeIntegration.js",
tests: "js/unitTests/tests/testsNodeIntegration.js"
}, function () {
console.log(arguments);
});
;