Matteo Scandolo | 583234d | 2017-04-20 14:33:04 -0700 | [diff] [blame] | 1 | const SpecReporter = require('jasmine-spec-reporter').SpecReporter; |
| 2 | |
| 3 | exports.config = { |
| 4 | seleniumAddress: 'http://localhost:4444/wd/hub', |
| 5 | suites: { |
| 6 | login: '../e2e/login/*.spec.js', |
| 7 | dashboard: '../e2e/dashboard/*.spec.js', |
| 8 | keyboard: '../e2e/keyboard-shortcuts/*.spec.js', |
| 9 | crud: '../e2e/crud/*.spec.js' |
| 10 | }, |
| 11 | onPrepare: function () { |
| 12 | jasmine.getEnv().addReporter(new SpecReporter({ |
| 13 | spec: { |
| 14 | displayStacktrace: true |
| 15 | } |
| 16 | })); |
| 17 | }, |
| 18 | jasmineNodeOpts: { |
| 19 | print: function() {}, |
| 20 | showColors: true, // Use colors in the command line report. |
| 21 | defaultTimeoutInterval: (parseInt(process.env.TIMEOUT, 10) + 1000) || 30 * 1000 |
| 22 | }, |
| 23 | allScriptsTimeout: parseInt(process.env.TIMEOUT, 10) || 10 * 1000 |
| 24 | }; |