-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprotractor.config.js
57 lines (46 loc) · 1.12 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
'use strict';
var PORT = process.env.TEST_PORT || 8282;
var path = require('path');
var createServer = require('http-server').createServer;
var server = null;
var root = path.join(__dirname, '../..');
var config = {
beforeLaunch: function() {
server = createServer({
root: root
});
server.listen(PORT, function(err) {
if (err) {
return console.error(err);
}
console.log('Test server started at http://localhost:' + PORT);
});
},
baseUrl: 'http://localhost:' + PORT + '/',
directConnect: true,
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: ['--test-type']
}
},
// To test specific files you can limit the spec files to steps 1, 2 and the
// step you are looking for. For example:
//
// specs: [
// 'specs/**/1*test.js',
// 'specs/**/2*test.js',
// 'specs/**/5*test.js'
// ],
//
specs: ['specs/**/*test.js'],
jasmineNodeOpts: {
showColors: true,
isVerbose: true,
realtimeFailure: true,
includeStackTrace: true,
defaultTimeoutInterval: 30000
},
allScriptsTimeout: 50000
};
exports.config = config;