@flemist/karma-custom-launcher
v0.0.0
Published
Custom launcher for karma
Downloads
11
Maintainers
Readme
Usage
karma.conf.js
module.exports = function (config) {
config.set({
browsers: [
'ChromeLatest',
'Chromium39',
'FirefoxHeadless',
],
files : ['dist/browser/browser.test.js'],
reporters : ['progress'],
plugins : [
'karma-chrome-launcher',
'@flemist/karma-custom-launcher',
],
customLaunchers: {
ChromiumCI: {
base : 'Custom',
parent : 'ChromiumHeadless',
displayName: 'Chromium CI',
flags : [
'--headless',
'--incognito',
'--no-sandbox',
'--disable-gpu',
'--disable-web-security',
'--allow-cross-origin-auth-prompt',
'--disable-site-isolation-trials',
'--enable-precise-memory-info',
],
DEFAULT_CMD: {
linux: process.env.CHROMIUM_BIN,
},
ENV_CMD: null,
},
Chromium33: {
base : 'Custom',
parent : 'ChromiumHeadless',
displayName: 'Chromium 33.0.1750.170',
flags : [
'--incognito',
'--no-sandbox',
'--disable-web-security',
'--allow-cross-origin-auth-prompt',
'--disable-site-isolation-trials',
],
DEFAULT_CMD: {
win32: 'E:/Program Files (x86)/Chromium/33.0.1750.170/chrome.exe',
},
ENV_CMD: null,
},
Chromium39: {
base : 'Custom',
parent : 'ChromiumHeadless',
displayName: 'Chromium 39.0.2171.99',
flags : [
'--incognito',
'--no-sandbox',
'--disable-web-security',
'--allow-cross-origin-auth-prompt',
'--disable-site-isolation-trials',
],
DEFAULT_CMD: {
win32: 'E:/Program Files (x86)/Chromium/39.0.2171.99/chrome.exe',
},
ENV_CMD: null,
},
Chromium44: {
base : 'Custom',
parent : 'ChromiumHeadless',
displayName: 'Chromium 44.0.2403.119',
flags : [
'--incognito',
'--no-sandbox',
'--disable-web-security',
'--allow-cross-origin-auth-prompt',
'--disable-site-isolation-trials',
],
DEFAULT_CMD: {
win32: 'E:/Program Files (x86)/Chromium/44.0.2403.119/chrome.exe',
},
ENV_CMD: null,
},
ChromiumLatest: {
base : 'Custom',
parent: 'ChromiumHeadless',
flags : [
'--incognito',
'--no-sandbox',
'--disable-web-security',
'--allow-cross-origin-auth-prompt',
'--disable-site-isolation-trials',
],
DEFAULT_CMD: {
win32: 'E:/Program Files (x86)/Chromium/44.0.2403.119/chrome.exe',
},
ENV_CMD: null,
},
ChromeLatest: {
base : 'Custom',
parent: 'ChromeHeadless',
flags : [
'--incognito',
'--no-sandbox',
'--disable-web-security',
'--allow-cross-origin-auth-prompt',
'--disable-site-isolation-trials',
],
},
},
})
}