-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
46 lines (35 loc) · 1.55 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
// See http://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function(config) {
var base = 'resources/test/test' //same as :output-dir
config.set({
frameworks: ['cljs-test'],
basePath: '',
logLevel: "DEBUG",
files: [
// We serve all the JS files via Karma's webserver so that you can
// use :optimizations :none. Only test.js is "included" because
// CLJS does its own module loading.
{ pattern: base + '/*.js', included: false },
{ pattern: base + '/**/*.js', included: false },
{ pattern: 'resources/test/test.js', nocache: true } // same as :output-to
],
client: {
// This value is the test entrypoint.
// In ordinary JS usage, this array is used to pass args the `karma.start` script,
// but here it is eval'd by the karma-cljs-test adapter to start the tests.
args: ['lines.karmarunner.run_all']
},
reporters: ['progress'],
browsers: ['PhantomJS'],
reportSlowerThan: 500, // ms
// We disable autoWatch, because it executes tests while the code is
// still compiling. We use :notify-command to trigger them instead.
autoWatch: false,
// singleRun: true,
// Configuration for JUnit output. We care only about the output directory.
// <https://github.com/karma-runner/karma-junit-reporter#configuration>
// junitReporter: {
// outputDir: 'reports'
// }
});
}