Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created July 13, 2018 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/525089fb796d171e2d930e817d56dd07 to your computer and use it in GitHub Desktop.
Save gdyrrahitis/525089fb796d171e2d930e817d56dd07 to your computer and use it in GitHub Desktop.
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'src/app/**/*.js',
'src/spec/**/*.specs.js'
],
preprocessors: {
'**/src/app/*.js': ['coverage']
},
plugins: [
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-coverage'
],
reporters: ['progress', 'coverage'],
port: 9878,
colors: true,
logLevel: config.LOG_DEBUG,
autowatch: true,
browsers: ['PhantomJS'],
singleRun: false,
concurrency: Infinity,
coverageReporter: {
includeAllSources: true,
dir: 'coverage/',
reporters: [
{ type: "html", subdir: "html" },
{ type: 'text-summary' }
]
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment