forked from thaiat/ionic-facebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
53 lines (51 loc) · 2.21 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
'use strict';
exports.config = {
//seleniumAddress: 'http://localhost:4444/wd/hub',
seleniumServerJar: './node_modules/gulp-protractor/node_modules/protractor/selenium/selenium-server-standalone-2.43.1.jar',
//specs: ['spec.js'],
capabilities: {
browserName: 'phantomjs',
version: '',
platform: 'ANY',
'phantomjs.binary.path': './node_modules/karma-phantomjs-launcher/node_modules/phantomjs/bin/phantomjs'
},
jasmineNodeOpts: {
showColors: true,
silent: true,
defaultTimeoutInterval: 30000
},
onPrepare: function() {
browser.driver.manage().window().setSize(1600, 800);
//var folderName = ''; // (new Date()).toString().split(' ').splice(1, 4).join(' ');
//var mkdirp = require('mkdirp');
//var newFolder = './reports/' + folderName;
require('jasmine-reporters');
require('jasmine-spec-reporter');
var HtmlReporter = require('protractor-html-screenshot-reporter');
jasmine.getEnv().addReporter(new jasmine.SpecReporter({
displaySpecDuration: true,
displayStacktrace: true
}));
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: 'reports/screenshots',
docName: 'index.html',
takeScreenShotsOnlyForFailedSpecs: false
}));
// mkdirp(newFolder, function(err) {
// if(err) {
// console.error(err);
// } else {
// //jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter('reports', true, true));
// //jasmine.getEnv().addReporter(new jasmine.ConsoleReporter());
// jasmine.getEnv().addReporter(new jasmine.SpecReporter({
// displayStacktrace: true
// }));
// jasmine.getEnv().addReporter(new HtmlReporter({
// baseDirectory: 'reports/screenshots',
// docName: 'index.html',
// takeScreenShotsOnlyForFailedSpecs: false
// }));
// }
// });
},
};