forked from zenozeng/p5.js-svg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
41 lines (39 loc) · 1.36 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
// Karma configuration
// Generated on Mon May 25 2015 17:53:42 GMT+0800 (CST)
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha'],
files: [
// note: lower index will override greater index config
{ pattern: 'dist/*.js.map', included: false },
{ pattern: 'src/**/*.js', included: false },
{ pattern: 'test/unit/**/*', included: false },
'https://unpkg.com/[email protected]/lib/p5.min.js',
'dist/p5.svg.js',
'dist/test.js'
],
preprocessors: {
'**/*.js': ['sourcemap']
},
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: ['ChromeHeadless', '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
})
}