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