-
-
Notifications
You must be signed in to change notification settings - Fork 145
/
karma.conf.js
32 lines (30 loc) · 900 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
32
module.exports = function (config) {
var root = './target/karma' // same as :output-dir
var junitOutputDir = "target/karma/junit"
var browsers = ['ChromeHeadless']
config.set({
frameworks: ['cljs-test'],
browsers: browsers,
basePath: root,
files: [
'test.js'
],
plugins: [
'karma-cljs-test',
'karma-chrome-launcher',
'karma-junit-reporter'
],
colors: true,
logLevel: config.LOG_INFO,
client: {
args: ['shadow.test.karma.init'],
singleRun: true
},
// the default configuration
junitReporter: {
outputDir: junitOutputDir + '/karma', // results will be saved as outputDir/browserName.xml
outputFile: undefined, // if included, results will be saved as outputDir/browserName/outputFile
suite: '' // suite will become the package name attribute in xml testsuite element
}
})
}