Skip to content

Commit

Permalink
Add more karma flags for chromeheadless
Browse files Browse the repository at this point in the history
  • Loading branch information
cofinley committed Sep 14, 2023
1 parent 4d8999a commit ca9dca1
Showing 1 changed file with 31 additions and 24 deletions.
55 changes: 31 additions & 24 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
module.exports = function (config) {
var junitOutputDir = process.env.CIRCLE_TEST_REPORTS || "target/junit"
var junitOutputDir = process.env.CIRCLE_TEST_REPORTS || "target/junit"

config.set({
browsers: ['ChromeHeadless'],
flags: ['--no-sandbox'],
basePath: 'target',
files: ['karma-test.js'],
frameworks: ['cljs-test'],
plugins: [
'karma-cljs-test',
'karma-chrome-launcher',
'karma-junit-reporter'
],
colors: true,
logLevel: config.LOG_INFO,
client: {
args: ['shadow.test.karma.init']
},
config.set({
browsers: ['ChromeHeadless'],
flags: [
'--no-sandbox',
'--disable-web-security',
'--disable-gpu',
],
browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 3,
browserNoActivityTimeout: 60000,
basePath: 'target',
files: ['karma-test.js'],
frameworks: ['cljs-test'],
plugins: [
'karma-cljs-test',
'karma-chrome-launcher',
'karma-junit-reporter'
],
colors: true,
logLevel: config.LOG_INFO,
client: {
args: ['shadow.test.karma.init']
},

// 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
}
})
// 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
}
})
}

0 comments on commit ca9dca1

Please sign in to comment.