salix/smokes_tests.js

37 lines
769 B
JavaScript
Raw Normal View History

2018-03-09 19:04:03 +00:00
require('babel-core/register')({presets: ['es2015']});
process.on('warning', warning => {
console.log(warning.name);
console.log(warning.message);
console.log(warning.stack);
});
2018-12-20 16:05:30 +00:00
let verbose = false;
2018-03-09 19:04:03 +00:00
2018-12-20 16:05:30 +00:00
if (process.argv[2] === '--v')
2018-03-09 19:04:03 +00:00
verbose = true;
2018-12-20 16:05:30 +00:00
let Jasmine = require('jasmine');
let jasmine = new Jasmine();
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
2018-03-09 19:04:03 +00:00
jasmine.loadConfig({
spec_files: [
'./e2e/smokes/**/*[sS]pec.js',
'./e2e/helpers/extensions.js'
],
2018-12-20 16:05:30 +00:00
helpers: []
2018-03-09 19:04:03 +00:00
});
jasmine.addReporter(new SpecReporter({
spec: {
// displayStacktrace: 'summary',
displaySuccessful: verbose,
displayFailedSpec: true,
displaySpecDuration: true
}
}));
jasmine.execute();