forked from zenozeng/p5.js-svg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
44 lines (43 loc) · 1.48 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
// Karma configuration
// Generated on Mon May 25 2015 17:53:42 GMT+0800 (CST)
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['browserify', 'mocha'],
files: [
// note: lower index will override greater index config
'test/bower_components/p5.js/p5.js',
'test/bower_components/jquery/dist/jquery.js',
'build/entry.js',
{pattern: 'src/**/*.js', included: false},
{pattern: 'test/unit/**/*.svg', included: false},
{pattern: 'test/unit/**/*.jpg', included: false},
'test/unit/bundle.js'
],
preprocessors: {
'build/entry.js': ['browserify']
},
"browserify": {
"debug": true,
"transform": ["browserify-istanbul"]
},
reporters: ['progress', 'coverage', 'mocha'],
coverageReporter: {
type: 'lcovonly',
dir : 'test/coverage/',
subdir: '.',
file: 'lcov.info'
},
port: 9876,
colors: true,
// logLevel: config.LOG_DISABLE,
// logLevel: config.LOG_DEBUG,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['Chrome', 'Firefox'],
// browsers: ['Chrome'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true // output all logs to stdout instead of click debug button
});
};