-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotractor-conf.js
50 lines (46 loc) · 1.51 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
exports.config = {
framework: "jasmine2",
specs: ["specs/**/*.spec.js"],
suites: {
AngularHome: 'specs/**/angularHome.spec.js'
},
directConnect: true,
seleniumAddress: 'http://localhost:4444/wd/hub',
seleniumPort: 4444,
jasmineNodeOpts: {
print: () => { },
},
onPrepare: () => {
// Testing against a non-angular site - set ignoreSynchronization setting to true
browser.ignoreSynchronization = true;
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
jasmine.getEnv().addReporter(
new SpecReporter({
// Defaults: https://github.com/bcaudan/jasmine-spec-reporter#default-options
// Configuration: https://github.com/bcaudan/jasmine-spec-reporter/blob/master/src/configuration.ts
suite: {
displayNumber: true, // display each suite number (hierarchical)
},
spec: {
displaySuccessful: true,
displayPending: true, // display each pending spec
displayDuration: true, // display each spec duration
},
summary: {
displaySuccessful: false, // display summary of all successes after execution
displayFailed: true, // display summary of all failures after execution
displayPending: false, // display summary of all pending specs after execution
displayDuration: true,
},
}),
);
},
capabilities: {
browserName: "chrome",
chromeOptions: {
args: [
'--start-maximized'
]
}
}
};