40 lines
817 B
JavaScript
40 lines
817 B
JavaScript
process.on('warning', warning => {
|
|
console.log(warning.name);
|
|
console.log(warning.message);
|
|
console.log(warning.stack);
|
|
});
|
|
|
|
let verbose = false;
|
|
|
|
if (process.argv[2] === '--v')
|
|
verbose = true;
|
|
|
|
let app = require(`vn-loopback/server/server`);
|
|
app.boot();
|
|
loopbackApp = 'vn-loopback/server/server';
|
|
|
|
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,
|
|
helpers: []
|
|
});
|
|
|
|
jasmine.addReporter(new SpecReporter({
|
|
spec: {
|
|
// displayStacktrace: 'summary',
|
|
displaySuccessful: verbose,
|
|
displayFailedSpec: true,
|
|
displaySpecDuration: true
|
|
}
|
|
}));
|
|
|
|
jasmine.execute();
|