patrickdelconte
03/09/2020, 2:37 PMKarmaConfig
which has all the options, unfortunately the Karma’s config
property is private. Id like to do use chrome headless in a test (which is run in a container) as explained here https://docs.travis-ci.com/user/chrome#sandboxing
It seems like the translation into gradle.kts would be the following (but does not work because config
is private)
karma {
config.customLaunchers["ChromeHeadlessNoSandbox"] = CustomLauncher("ChromeHeadless").apply { flags.add("--no-sandbox") }
}
turansky
03/09/2020, 3:37 PMkarma.config.d
directorypatrickdelconte
03/09/2020, 3:41 PMturansky
03/09/2020, 3:43 PMpatrickdelconte
03/09/2020, 3:44 PMpatrickdelconte
03/09/2020, 3:44 PMturansky
03/09/2020, 3:45 PMconfig
variable for manipulationturansky
03/09/2020, 3:47 PMconfig.basePath = '../..'
patrickdelconte
03/09/2020, 3:47 PMkarma.conf.d
directory?turansky
03/09/2020, 3:48 PMturansky
03/09/2020, 3:49 PMturansky
03/09/2020, 3:55 PMpatrickdelconte
03/09/2020, 4:58 PMturansky
03/10/2020, 12:04 AM--no-sandbox
in your case?patrickdelconte
03/10/2020, 8:17 AMpatrickdelconte
03/10/2020, 8:17 AMturansky
03/10/2020, 8:40 AMturansky
03/10/2020, 8:46 AMpatrickdelconte
03/10/2020, 8:48 AMpatrickdelconte
03/10/2020, 9:34 AMUSER gradle
at the end of my Dockerfile it leads to a crash on my mac (apparently a bug in docker) but it works on gitlab ci. Now I don’t need the --no-sandbox workaround after all.patrickdelconte
03/10/2020, 9:37 AMuseConfigDirectory()
and its default value karma.config.d
were documentedsteamstreet
08/12/2020, 5:17 AMuseBrowser
is private and I’m not able to define the custom launcher.steamstreet
08/12/2020, 5:17 AM-no-sandbox
option.steamstreet
08/12/2020, 5:18 AMmodule.exports = function (config) {
config.set({
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
}
});
};
steamstreet
08/12/2020, 5:18 AMChromeHeadlessNoSandbox
launcher. When I try to run, I get No browsers configured for task ':client:jsBrowserTest'
steamstreet
08/12/2020, 5:19 AMsteamstreet
08/12/2020, 5:19 AMPiotr Krzemiński
12/10/2021, 12:49 PM