salix/db/tests.js

40 lines
817 B
JavaScript
Raw Normal View History

process.on('warning', warning => {
console.log(warning.name);
console.log(warning.message);
console.log(warning.stack);
});
2018-12-19 07:42:07 +00:00
let verbose = false;
2018-12-19 07:42:07 +00:00
if (process.argv[2] === '--v')
verbose = true;
let app = require(`vn-loopback/server/server`);
app.boot();
loopbackApp = 'vn-loopback/server/server';
2018-12-19 07:42:07 +00:00
let Jasmine = require('jasmine');
let jasmine = new Jasmine();
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
let serviceSpecs = [
'./tests/**/*[sS]pec.js'
];
jasmine.loadConfig({
spec_dir: 'db',
spec_files: serviceSpecs,
2018-12-20 16:05:30 +00:00
helpers: []
});
jasmine.addReporter(new SpecReporter({
spec: {
// displayStacktrace: 'summary',
displaySuccessful: verbose,
displayFailedSpec: true,
displaySpecDuration: true
}
}));
jasmine.execute();