-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
68 lines (65 loc) · 1.61 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
63
64
65
66
67
68
module.exports = function (config) {
config.set({
basePath : '',
frameworks: ['jasmine', 'requirejs'],
files: [
'test-main.js',
'lib/external/miniclass.js',
'lib/external/jquery.js',
'lib/external/jquery-ui-1.8.1.custom.min.js',
'lib/external/underscore.js',
'lib/external/d3.js',
'lib/external/stats.js',
'lib/external/dat.gui.js',
'lib/external/tweenjs-0.5.1.min.js',
'lib/external/preloadjs-0.4.1.min.js',
'lib/external/paper-full.js',
'lib/external/toxiclibs.js',
'lib/external/screenfull.js',
{pattern: 'test/**/*test.js', included: false},
{pattern: 'lib/**/*.js', included: false}
],
exclude: [
'lib/requireconfig.js',
'karma.conf.js'
],
//browsers : ['PhantomJS'],
browsers: ['Chrome'],
customLaunchers: {
Chrome_Travis_CI: {
base: 'Chrome',
flags: ['--no-sandbox']
}//,
//ChromeCanary_Travis_CI: {
// base: 'ChromeCanary',
// flags: ['--no-sandbox']
//}
},
reporters : ['progress', 'spec', 'coverage', 'html'],
preprocessors: {
'lib/**/*.js': ['coverage']
},
coverageReporter: {
type : 'text'//,
//dir : 'coverage/'
},
colors: true,
logLevel: config.LOG_DEBUG,
htmlReporter: {
outputFile: 'results/unit-tests.html'
},
singleRun: true,
plugins : [
'karma-spec-reporter',
'karma-phantomjs-launcher',
'karma-chrome-launcher',
'karma-jasmine',
'karma-coverage',
'karma-htmlfile-reporter',
'karma-requirejs'
]
});
//if(process.env.TRAVIS) {
// config.browsers = ['ChromeCanary_Travis_CI'];
//}
};