This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
forked from os2kitos/kitos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.local.conf.js
69 lines (57 loc) · 2 KB
/
protractor.local.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
'use strict';
var paths = require('./paths.config.js');
exports.config = {
framework: 'jasmine2',
seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 1
/* PhantomJS is not working
* Can be used to specify the phantomjs binary path.
* This can generally be ommitted if you installed phantomjs globally.
*/
//'phantomjs.binary.path': './node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs',
/*
* Command line args to pass to ghostdriver, phantomjs's browser driver.
* See https://github.com/detro/ghostdriver#faq
*/
//'phantomjs.ghostdriver.cli.args': ['--loglevel=DEBUG']
},
// kan ikke bruge suites når vi tester vha. gulp
// select all end to end tests
//suites: paths.e2eSuites.home,
//suites:[],
//specs: ['Presentation.Web/Test/it-contract/it-contract-edit.e2e.spec.js'],
baseUrl: 'https://localhost:44300',
onPrepare: function () {
require('protractor-http-mock').config = {
rootDirectory: __dirname,
protractorConfig: 'protractor.local.conf.js'
};
require("jasmine-expect");
require("require-dir")("./Presentation.Web/Tests/matchers");
var reporters = require("jasmine-reporters");
jasmine.getEnv()
.addReporter(new reporters.TerminalReporter({
verbosity: 3,
color: true,
showStack: true
}));
//jasmine.getEnv()
// .addReporter(new reporters.JUnitXmlReporter({
// consolidateAll: true,
// savePath: '/testresults',
// filePrefix: 'xmloutput'
// }));
},
jasmineNodeOpts: {
print: function () { },
showColors: true,
defaultTimeoutInterval: 30000
},
mocks: {
default: ['authorize'],
dir: paths.source + '/Tests/mocks'
}
};