2017-09-10 18:04:22 +00:00
|
|
|
process.on('warning', warning => {
|
|
|
|
console.log(warning.name);
|
|
|
|
console.log(warning.message);
|
|
|
|
console.log(warning.stack);
|
|
|
|
});
|
2017-09-08 12:37:55 +00:00
|
|
|
|
|
|
|
var verbose = false;
|
|
|
|
|
|
|
|
if (process.argv[2] === '--v') {
|
|
|
|
verbose = true;
|
|
|
|
}
|
2018-04-19 09:20:41 +00:00
|
|
|
servicesDir = `${__dirname}/services`;
|
2017-09-08 12:37:55 +00:00
|
|
|
|
|
|
|
var Jasmine = require('jasmine');
|
|
|
|
var jasmine = new Jasmine();
|
|
|
|
var SpecReporter = require('jasmine-spec-reporter').SpecReporter;
|
2018-03-13 10:15:39 +00:00
|
|
|
let environment = require('gulp-env');
|
|
|
|
|
|
|
|
environment(".env.json");
|
2017-09-08 12:37:55 +00:00
|
|
|
|
|
|
|
jasmine.loadConfig({
|
2018-01-15 11:53:48 +00:00
|
|
|
spec_dir: 'services',
|
2017-09-08 12:37:55 +00:00
|
|
|
spec_files: [
|
2018-01-29 13:28:31 +00:00
|
|
|
'auth/server/**/*[sS]pec.js',
|
2018-02-05 09:58:49 +00:00
|
|
|
'client/common/**/*[sS]pec.js',
|
2018-02-14 14:56:22 +00:00
|
|
|
'item/common/**/*[sS]pec.js',
|
2018-07-03 13:00:33 +00:00
|
|
|
'ticket/common/**/*[sS]pec.js',
|
2018-02-05 09:58:49 +00:00
|
|
|
'loopback/common/**/*[sS]pec.js'
|
2017-09-08 12:37:55 +00:00
|
|
|
],
|
|
|
|
helpers: [
|
2018-01-15 10:34:48 +00:00
|
|
|
'/services/utils/jasmineHelpers.js'
|
2017-09-08 12:37:55 +00:00
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
jasmine.addReporter(new SpecReporter({
|
|
|
|
spec: {
|
|
|
|
// displayStacktrace: 'summary',
|
|
|
|
displaySuccessful: verbose,
|
|
|
|
displayFailedSpec: true,
|
|
|
|
displaySpecDuration: true
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
|
2018-01-15 10:34:48 +00:00
|
|
|
jasmine.execute();
|