This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
karma.conf.js
62 lines (54 loc) · 1.5 KB
/
karma.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
module.exports = function(config) {
config.set({
//logLevel: config.LOG_DEBUG,
basePath: '.',
frameworks: ['dart-unittest'],
// list of files / patterns to load in the browser
// all tests must be 'included', but all other libraries must be 'served' and
// optionally 'watched' only.
files: [
'test/*.dart',
{pattern: '**/*.dart', watched: true, included: false, served: true},
'packages/browser/dart.js',
'packages/browser/interop.js'
],
autoWatch: false,
// If browser does not capture in given timeout [ms], kill it
captureTimeout: 120000,
// Time for dart2js to run on Travis... [ms]
browserNoActivityTimeout: 1500000,
plugins: [
'karma-dart',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-script-launcher',
'karma-sauce-launcher',
'karma-junit-reporter'
],
customLaunchers: {
'SL_Chrome': {
base: 'SauceLabs',
browserName: 'chrome',
version: '35'
},
'SL_Firefox': {
base: 'SauceLabs',
browserName: 'firefox',
version: '30'
}
},
junitReporter: {
outputFile: 'test/out/unit.xml',
suite: 'unit'
},
sauceLabs: {
testName: 'RouteDart',
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
startConnect: false,
options: {
'selenium-version': '2.41.0',
'max-duration': 2700
}
}
});
};