-
Notifications
You must be signed in to change notification settings - Fork 3
/
protractor.conf.js
54 lines (43 loc) · 1.43 KB
/
protractor.conf.js
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
51
52
53
54
var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter');
var JasmineConsoleReporter = require('jasmine-console-reporter');
exports.config = {
framework: 'jasmine2',
capabilities: {
'browserName': 'phantomjs',
/*
* Can be used to specify the phantomjs binary path.
* This can generally be ommitted if you installed phantomjs globally.
*/
'phantomjs.binary.path': require('phantomjs').path,
/*
* Command line args to pass to ghostdriver, phantomjs's browser driver.
* See https://github.com/detro/ghostdriver#faq
*/
'phantomjs.ghostdriver.cli.args': ['--webdriver=4444','--loglevel=DEBUG']
},
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['test/e2e/*.spec.js'],
onPrepare: function() {
//add jasmine html && screenshots reporters
jasmine.getEnv().addReporter(
new Jasmine2HtmlReporter({
savePath: 'logs/e2e/html',
screenshotsFolder: '-screenshots'
})
);
//add console reporters
jasmine.getEnv().addReporter(
new JasmineConsoleReporter({
colors: 1, // (0|false)|(1|true)|2
cleanStack: 1, // (0|false)|(1|true)|2|3
verbosity: 4, // (0|false)|1|2|(3|true)|4
listStyle: 'indent', // "flat"|"indent"
activity: false
})
);
},
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true // Use colors in the command line report.
}
};