From 6efe6970d87335d1fff6a344f0fe068455d18857 Mon Sep 17 00:00:00 2001 From: Jesse James Isler Date: Thu, 9 Jun 2022 12:16:29 +0200 Subject: [PATCH] updated karma --- karma.conf.js | 46 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index c78df70..00fd008 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -37,8 +37,46 @@ module.exports = function (config) { colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['Chrome'], - singleRun: false, - restartOnFileChange: true - }); +// browsers: ['Chrome'], +// singleRun: false, +// Start custom code +browsers:[ + "ChromeHeadlessNoSandbox" +], +customLaunchers:{ + ChromeHeadlessNoSandbox:{ + base:"ChromeHeadless", + flags:[ + "--no-sandbox", + // required to run without privileges in Docker + "--disable-web-security", + "--disable-gpu", + "--remote-debugging-port=9222" + ] + } +}, +singleRun:false, +junitReporter:{ + outputDir:'test-reports', + // results will be saved as $outputDir/$browserName.xml + outputFile:'junit-report.xml', + // if included, + results will be saved as $outputDir/$browserName/$outputFile + suite:'', + // suite will become the package name attribute in xml testsuite element + useBrowserName:false, + // add browser name to report and classes names + nameFormatter:undefined, + // function (browser, + result) to customize the name attribute in xml testcase element + classNameFormatter:undefined, + // function (browser, + result) to customize the classname attribute in xml testcase element + properties:{ + } // key value pair of properties to add to the section of the report +} +}); +//end Custom Code +// restartOnFileChange: true +// }); };