Skip to content

Commit c159c51

Browse files
committed
Merge branch 'testing' of https://github.com/4Science/dspace-angular into testing
2 parents e9df291 + 95a39ef commit c159c51

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

karma.conf.js

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
*/
44

55
module.exports = function(config) {
6-
var webdriverConfig = {
7-
hostname: '4science-devel1',
8-
port: 4202
9-
}
10-
6+
117
var testWebpackConfig = require('./webpack.test.config.js')({env: 'test'});
128

9+
// Uncomment and change to run tests on a remote Selenium server
10+
var webdriverConfig = {
11+
hostname: 'localhost',
12+
port: 4444
13+
}
14+
1315
var configuration = {
1416

1517
// base path that will be used to resolve all patterns (e.g. files, exclude)
@@ -57,7 +59,7 @@ module.exports = function(config) {
5759
reporters:[
5860
{type: 'in-memory'},
5961
{type: 'json', subdir: '.', file: 'coverage-final.json'},
60-
{type : 'html', dir : 'coverage/'}
62+
{type: 'html', dir : 'coverage/'}
6163
]
6264
},
6365

@@ -87,8 +89,8 @@ module.exports = function(config) {
8789
*/
8890
reporters: [ 'mocha', 'coverage', 'karma-remap-istanbul' ],
8991

90-
// web server port
91-
port: 4212,
92+
// Karma web server port
93+
port: 9876,
9294

9395
// enable / disable colors in the output (reporters and logs)
9496
colors: true,
@@ -108,19 +110,25 @@ module.exports = function(config) {
108110
*/
109111
browsers: [
110112
'Chrome'
113+
//'ChromeTravisCi',
114+
//'SeleniumChrome',
115+
//'SeleniumFirefox'
111116
],
112117

113118
customLaunchers: {
114-
ChromeTravisCi: {
119+
// Continuous integraation with Chrome - launcher
120+
'ChromeTravisCi': {
115121
base: 'Chrome',
116122
flags: ['--no-sandbox']
117123
},
118-
'chrome': {
124+
// Remote Selenium Server with Chrome - launcher
125+
'SeleniumChrome': {
119126
base: 'WebDriver',
120127
config: webdriverConfig,
121128
browserName: 'chrome',
122129
},
123-
'firefox': {
130+
// Remote Selenium Server with Firefox - launcher
131+
'SeleniumFirefox': {
124132
base: 'WebDriver',
125133
config: webdriverConfig,
126134
browserName: 'firefox',

0 commit comments

Comments
 (0)