-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
43 lines (40 loc) · 1.23 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
process.env.CHROME_BIN = require('puppeteer').executablePath()
module.exports = function (config) {
var junitOutputDir = process.env.CIRCLE_TEST_REPORTS || "target/junit"
config.set({
customLaunchers: {
CustomElectron: {
base: 'Electron',
require: __dirname + '/resources/main.js',
browserWindowOptions: {
webPreferences: {
preload: __dirname + '/resources/preload.js',
sandbox: false
}
}
}
},
browsers: ['ChromeHeadless', 'CustomElectron'],
basePath: 'target',
files: ['karma-test.js'],
frameworks: ['cljs-test'],
plugins: [
'karma-electron',
'karma-cljs-test',
'karma-chrome-launcher',
'karma-junit-reporter'
],
colors: true,
logLevel: config.LOG_INFO,
client: {
args: ['shadow.test.karma.init'],
useIframe: false
},
// 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
}
})
}