next-ucap-messenger/electron-projects/ucap-webmessenger-electron-core/karma.conf.js

35 lines
975 B
JavaScript
Raw Normal View History

2019-11-09 08:29:02 +00:00
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
2019-11-11 06:53:39 +00:00
module.exports = function(config) {
2019-11-09 08:29:02 +00:00
config.set({
basePath: '',
2019-11-11 06:53:39 +00:00
frameworks: ['jasmine'],
2019-11-09 08:29:02 +00:00
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
2019-11-11 06:53:39 +00:00
require('karma-coverage-istanbul-reporter')
2019-11-09 08:29:02 +00:00
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
2019-11-11 06:53:39 +00:00
dir: require('path').join(
__dirname,
'../../coverage/ucap-webmessenger-electron-core'
),
2019-11-09 08:29:02 +00:00
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};