|
| 1 | +exports.config = { |
| 2 | + // Locally, we should just use the default standalone Selenium server |
| 3 | + // In Travis, we set up the Selenium serving via Sauce Labs |
| 4 | + sauceUser: process.env.SAUCE_USERNAME, |
| 5 | + sauceKey: process.env.SAUCE_ACCESS_KEY, |
| 6 | + |
| 7 | + // Tests to run |
| 8 | + specs: [ |
| 9 | + './protractor/**/*.spec.js' |
| 10 | + ], |
| 11 | + |
| 12 | + // Capabilities to be passed to the webdriver instance |
| 13 | + // For a full list of available capabilities, see https://code.google.com/p/selenium/wiki/DesiredCapabilities |
| 14 | + capabilities: { |
| 15 | + 'browserName': 'chrome', |
| 16 | + 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, |
| 17 | + 'build': process.env.TRAVIS_BUILD_NUMBER, |
| 18 | + 'name': 'AngularFire Protractor Tests Build ' + process.env.TRAVIS_BUILD_NUMBER |
| 19 | + }, |
| 20 | + |
| 21 | + // Calls to protractor.get() with relative paths will be prepended with the baseUrl |
| 22 | + baseUrl: 'http://localhost:3030/tests/protractor/', |
| 23 | + |
| 24 | + // Selector for the element housing the angular app |
| 25 | + rootElement: 'body', |
| 26 | + |
| 27 | + // Options to be passed to minijasminenode |
| 28 | + jasmineNodeOpts: { |
| 29 | + // onComplete will be called just before the driver quits. |
| 30 | + onComplete: null, |
| 31 | + // If true, display spec names. |
| 32 | + isVerbose: true, |
| 33 | + // If true, print colors to the terminal. |
| 34 | + showColors: true, |
| 35 | + // If true, include stack traces in failures. |
| 36 | + includeStackTrace: true, |
| 37 | + // Default time to wait in ms before a test fails. |
| 38 | + defaultTimeoutInterval: 20000 |
| 39 | + } |
| 40 | +}; |
0 commit comments