forked from day8/re-frame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
24 lines (21 loc) · 888 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
module.exports = function (config) {
var root = 'run/compiled/test'; // same as :output-dir
var junitOutputDir = process.env.CIRCLE_TEST_REPORTS || "run/compiled/test/junit";
config.set({
frameworks: ['cljs-test'],
browsers: ['Chrome'],
files: [
root + '/../test.js', // same as :output-to
{pattern: root + '/../test.js.map', included: false}
],
client: {
args: ['re_frame.test.runner.run']
},
// 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
}
})
};