-
Notifications
You must be signed in to change notification settings - Fork 24
/
karma.conf.js
31 lines (28 loc) · 912 Bytes
/
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
module.exports = function(config) {
// same as :output-dir in cljsbuild/builds/test
var output_dir = 'resources/public/test-web/out'
// same as :output-to in cljsbuild/builds/test
var output_to = 'resources/public/test-web/test.js'
config.set({
frameworks: ['cljs-test'],
files: [
output_dir + '/goog/base.js',
output_dir + '/cljs_deps.js',
output_to,
{pattern: output_dir + '/*.js', included: false},
{pattern: output_dir + '/**/*.js', included: false}
],
client: {args: ['expound.test_runner.run_all'],
captureConsole: true},
// singleRun set to false does not work!
singleRun: true,
browsers: ['ChromeHeadless'],
autoWatch: false,
logLevel: config.LOG_INFO,
concurrency: 1,
// Workarounds for timeout
browserNoActivityTimeout: 20000,
transports: ['polling'],
browserDisconnectTolerance: 5
})
};