-
Notifications
You must be signed in to change notification settings - Fork 444
/
karma.conf.js
69 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
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
69
/**
* @author botime / https://github.com/botime
*/
// puppeteer will download Chromium during
process.env.CHROME_BIN = require('puppeteer').executablePath();
let isCI = typeof process.env.CI !== 'undefined' &&
(process.env.CI.toLowerCase() == 'true');
let browser = isCI ? 'ChromeHeadless' : 'Chrome';
module.exports = function(config) {
config.set({
browsers: [browser],
captureTimeout: 120000,
reportSlowerThan: 500,
browserNoActivityTimeout: 180000,
frameworks: ['jasmine'],
client: {
useIframe: false,
runInParent: false,
captureConsole: true
},
reporters: [ 'spec' ],
files: [
{ pattern: 'test/lib/three.min.js', included: true },
{ pattern: 'test/lib/stats.min.js', included: false, served: false },
{ pattern: 'test/lib/tween.min.js', included: true },
{ pattern: 'test/lib/TrackballControls.js', included: true },
{ pattern: 'test/lib/tf.min.js', included: true },
{ pattern: 'build/tensorspace.min.js', included: true },
{ pattern: 'build/tensorspace.min.js.map', included: false, served: true },
{ pattern: 'test/e2e/template.html', included: true },
{ pattern: 'test/e2e/*', included: true, watch: true },
],
preprocessors: {
'test/e2e/*.html': ['html2js']
},
logLevel: 'debug',
autoWatch: false
})
};