Skip to content

Commit

Permalink
Update karma.conf.js
Browse files Browse the repository at this point in the history
  • Loading branch information
olusegz07 committed Nov 27, 2023
1 parent 067917c commit 2abac00
Showing 1 changed file with 24 additions and 33 deletions.
57 changes: 24 additions & 33 deletions projects/ccd-case-ui-toolkit/src/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,52 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function(config) {

module.exports = function (config) {
config.set({
defaultTimeoutInterval: 60000,
browserNoActivityTimeout: 60000,
browserDisconnectTimeout: 60000,
basePath: '',
frameworks: ['parallel', 'jasmine', '@angular-devkit/build-angular'],
parallelOptions: {
executors: 1,
shardStrategy: 'round-robin'
},
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-parallel'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-spec-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma'),
require('karma-sonarqube-unit-reporter')
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
jasmine: {
jasmine:{
random: false,
verboseDeprecations: true,
}
},
clearContext: false, // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, '../../../coverage/ccd-case-ui-toolkit'),
subdir: '.',
reporters: [
{ type: 'html', subdir: 'html-report' },
{ type: 'lcov', subdir: 'lcov-report' }
{ type: 'lcov' }
],
fixWebpackSourcePaths: true,
combineBrowserReports: true
},
reporters: ['spec', 'progress', 'kjhtml', 'coverage-istanbul'],
specReporter: {
maxLogLines: 5, // limit number of lines logged per test
suppressErrorSummary: false,// do not print error summary
suppressFailed: false, // do not print information about failed tests
suppressPassed: false, // do not print information about passed tests
suppressSkipped: true, // do not print information about skipped tests
showSpecTiming: false, // print the time elapsed for each spec
failFast: false // test would finish with error when a first fail occurs.
fixWebpackSourcePaths: true
},
defaultTimeoutInterval: 60000,
browserNoActivityTimeout: 60000,
browserDisconnectTimeout: 60000,
reporters: ['spec', 'progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadless'],
customLaunchers: {
ChromeHeadlessCI: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: true,
restartOnFileChange: true
});
};
};

0 comments on commit 2abac00

Please sign in to comment.