forked from FirebaseExtended/angularfire
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsauce_protractor.conf.js
More file actions
50 lines (44 loc) · 1.62 KB
/
sauce_protractor.conf.js
File metadata and controls
50 lines (44 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
exports.config = {
// Locally, we should just use the default standalone Selenium server
// In Travis, we set up the Selenium serving via Sauce Labs
sauceUser: process.env.SAUCE_USERNAME,
sauceKey: process.env.SAUCE_ACCESS_KEY,
// Tests to run
specs: [
'./protractor/**/*.spec.js'
],
// Capabilities to be passed to the webdriver instance
// For a full list of available capabilities, see https://code.google.com/p/selenium/wiki/DesiredCapabilities
capabilities: {
'browserName': 'chrome',
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
'build': process.env.TRAVIS_BUILD_NUMBER,
'name': 'AngularFire Protractor Tests Build ' + process.env.TRAVIS_BUILD_NUMBER
},
// Calls to protractor.get() with relative paths will be prepended with the baseUrl
baseUrl: 'http://localhost:3030/tests/protractor/',
// Selector for the element housing the angular app
rootElement: 'body',
// Options to be passed to Jasmine-node.
onPrepare: function() {
require('jasmine-spec-reporter');
// add jasmine spec reporter
jasmine.getEnv().addReporter(new jasmine.SpecReporter({
displaySkippedSpec: true,
displaySpecDuration: true
}));
},
// Options to be passed to minijasminenode
jasmineNodeOpts: {
// onComplete will be called just before the driver quits.
onComplete: null,
// If true, display spec names.
isVerbose: true,
// If true, print colors to the terminal.
showColors: true,
// If true, include stack traces in failures.
includeStackTrace: true,
// Default time to wait in ms before a test fails.
defaultTimeoutInterval: 20000
}
};