-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.config.js
41 lines (33 loc) · 1.09 KB
/
protractor.config.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
var HierarchicalHTMLReporter = require('protractor-html-hierarchical-reporter');
var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter');
exports.config = {
directConnect: true,
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome',
chromeOptions: {
args: ["--test-type", "--no-sandbox"]
}
},
// Framework to use. Jasmine is recommended.
framework: 'jasmine2',
// Spec patterns are relative to this config file
specs: ['./e2e/**/*.e2e-spec.js'],
baseUrl: 'http://localhost:8080',
// For angular tests
useAllAngular2AppRoots: true,
// HierarchicalHTMLReporter
onPrepare: function() {
var jasmineReporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
consolidateAll: true,
savePath: 'e2e/report/',
filePrefix: 'xmloutput'
}));
jasmine.getEnv().addReporter(
new Jasmine2HtmlReporter({
savePath: 'e2e/report/'
})
);
}
};