require('require-yaml'); 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; serviceRoot = `${__dirname}/loopback`; let Jasmine = require('jasmine'); let jasmine = new Jasmine(); let SpecReporter = require('jasmine-spec-reporter').SpecReporter; let serviceSpecs = [ 'loopback/**/*[sS]pec.js', 'back/**/*[sS]pec.js' ]; let services = require(`./modules.yml`); for (let service of services) serviceSpecs.push(`modules/${service}/back/**/*[sS]pec.js`); jasmine.loadConfig({ spec_dir: '.', spec_files: serviceSpecs, helpers: [] }); jasmine.addReporter(new SpecReporter({ spec: { // displayStacktrace: 'summary', displaySuccessful: verbose, displayFailedSpec: true, displaySpecDuration: true } })); jasmine.execute();