Skip to content

Commit 3d0059e

Browse files
committed
Added IE karma config
To be able to run tests in IE. It's currently not part of the main build but useful for testing things locally.
1 parent eae1633 commit 3d0059e

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

gulpfile.babel.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ gulp.task('run-browser-test-edge', function(cb){
197197
}, cb).start();
198198
});
199199

200+
gulp.task('run-browser-test-ie', function (cb) {
201+
new karmaServer({
202+
configFile: __dirname + '/test/browser/karma-ie.conf.js',
203+
}, cb).start();
204+
});
205+
200206
gulp.task('watch', function () {
201207
return watch('src/**/*.js', batch(function (events, done) {
202208
gulp.start('all', done);

test/browser/karma-ie.conf.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* Copyright (c) 2002-2017 "Neo Technology,","
3+
* Network Engine for Objects in Lund AB [http://neotechnology.com]
4+
*
5+
* This file is part of Neo4j.
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
*/
19+
module.exports = function (config) {
20+
config.set({
21+
frameworks: ['jasmine'],
22+
basePath: '../../',
23+
files: ['lib/browser/neo4j-web.test.js'],
24+
reporters: ['spec'],
25+
port: 9876, // karma web server port
26+
colors: true,
27+
logLevel: config.LOG_DEBUG,
28+
browsers: ['IE'],
29+
autoWatch: false,
30+
singleRun: true,
31+
concurrency: 1,
32+
browserNoActivityTimeout: 30 * 60 * 1000,
33+
});
34+
};

0 commit comments

Comments
 (0)