forked from nidzix/superdesk-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor-conf.js
38 lines (36 loc) · 1.16 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
'use strict';
var ScreenShotReporter = require('protractor-screenshot-reporter');
exports.config = {
baseUrl: 'http://localhost:9000',
params: {
baseBackendUrl: 'http://localhost:5000/api/',
username: 'admin',
password: 'admin'
},
specs: ['spec/setup.js', 'spec/matchers.js', 'spec/**/*[Ss]pec.js'],
capabilities: {
browserName: 'chrome'
},
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
isVerbose: false,
includeStackTrace: false,
defaultTimeoutInterval: 30000
},
/* global jasmine */
onPrepare: function() {
jasmine.getEnv().addReporter(new ScreenShotReporter({
baseDirectory: './screenshots',
pathBuilder:
function pathBuilder(spec, descriptions, results, capabilities) {
return results.passed() + '_' + descriptions.reverse().join('-');
},
takeScreenShotsOnlyForFailedSpecs: true
}));
require('jasmine-reporters');
jasmine.getEnv().addReporter(
new jasmine.JUnitXmlReporter('e2e-test-results', true, true)
);
}
};