2017-01-10 18:08:36 +00:00
|
|
|
// karma.conf.js
|
2017-05-04 23:19:28 +00:00
|
|
|
module.exports = function (config) {
|
2017-01-10 18:08:36 +00:00
|
|
|
config.set({
|
2019-05-13 22:40:09 +00:00
|
|
|
basePath: '../../out',
|
2017-01-10 18:08:36 +00:00
|
|
|
frameworks: ['jasmine'],
|
|
|
|
singleRun: true,
|
2019-05-13 21:17:58 +00:00
|
|
|
browsers: ['ChromeHeadless'],
|
|
|
|
colors: true,
|
|
|
|
reporters: ['spec', 'coverage'],
|
2019-05-13 22:40:09 +00:00
|
|
|
logLevel: config.LOG_ERROR,
|
2017-01-10 18:08:36 +00:00
|
|
|
|
2019-05-13 21:17:58 +00:00
|
|
|
client: {
|
2019-05-13 22:40:09 +00:00
|
|
|
captureConsole: false,
|
2019-05-13 21:17:58 +00:00
|
|
|
},
|
|
|
|
|
2017-01-10 18:30:59 +00:00
|
|
|
preprocessors: {
|
2019-05-15 20:14:58 +00:00
|
|
|
'app.js': ['coverage']
|
2017-01-10 18:30:59 +00:00
|
|
|
},
|
2017-06-13 21:24:33 +00:00
|
|
|
|
2017-01-10 18:30:59 +00:00
|
|
|
coverageReporter: {
|
2017-05-04 23:19:28 +00:00
|
|
|
type: 'json',
|
2019-05-13 22:40:09 +00:00
|
|
|
dir: 'coverage',
|
2017-01-10 18:30:59 +00:00
|
|
|
subdir: '.',
|
|
|
|
file: 'coverage.json'
|
|
|
|
},
|
|
|
|
|
2017-06-13 21:24:33 +00:00
|
|
|
specReporter: {
|
2019-05-13 21:17:58 +00:00
|
|
|
showSpecTiming: true,
|
2019-05-13 22:40:09 +00:00
|
|
|
suppressPassed: true,
|
|
|
|
suppressErrorSummary: true
|
2017-06-13 21:24:33 +00:00
|
|
|
},
|
|
|
|
|
2017-01-10 18:08:36 +00:00
|
|
|
files: [
|
2019-05-15 20:14:58 +00:00
|
|
|
'dependencies.js',
|
|
|
|
'app.js',
|
|
|
|
'tests.js',
|
2017-01-10 18:08:36 +00:00
|
|
|
]
|
|
|
|
})
|
2017-03-11 20:52:31 +00:00
|
|
|
}
|