[AAE-12242] Fix code coverage (#8404)

* fix code coverage
This commit is contained in:
Eugenio Romano
2023-03-21 14:57:40 +01:00
committed by GitHub
parent c884b0625b
commit 0c4cc37dd2
8 changed files with 164 additions and 85 deletions

View File

@@ -1,5 +1,8 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
const { join } = require('path');
const { constants } = require('karma');
module.exports = function (config) {
config.set({
basePath: '../../',
@@ -54,15 +57,23 @@ module.exports = function (config) {
random: false
}
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage/process-services-cloud'),
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true
jasmineHtmlReporter: {
suppressAll: true, // removes the duplicated traces
},
browserDisconnectTimeout: 200000,
browserNoActivityTimeout: 2400000,
captureTimeout: 1200000,
coverageReporter: {
dir: join(__dirname, './coverage/process-service-cloud'),
subdir: '.',
reporters: [{ type: 'html' }, { type: 'text-summary' }],
check: {
global: {
statements: 75,
branches: 67,
functions: 73,
lines: 75
}
}
},
customLaunchers: {
ChromeHeadless: {
@@ -79,7 +90,7 @@ module.exports = function (config) {
reporters: ['mocha', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
logLevel: constants.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadless'],
singleRun: true