Skip to content

Instantly share code, notes, and snippets.

@jvanderbiest
Last active August 29, 2015 14:11
Show Gist options
  • Save jvanderbiest/2365092a0111c4dac11a to your computer and use it in GitHub Desktop.
Save jvanderbiest/2365092a0111c4dac11a to your computer and use it in GitHub Desktop.
Karma PhantomJS configuration for Codit.Blog.JsVsoBuild
module.exports = function(config) {
config.set({
basePath: 'Codit.Blog.JsVsoBuild',
frameworks: ['jasmine'],
files: [
'Scripts/angular.js',
'app/**/*.js',
'Scripts/angular-mocks.js',
'tests/unit/**/*Specs.js'
],
reporters: ['progress', 'html', 'coverage'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['PhantomJS'],
captureTimeout: 60000,
singleRun: true,
preprocessors: {
'app/**/*.js': ['coverage']
},
htmlReporter: {
outputFile: '../tests/test_report.html'
},
coverageReporter: { type : 'html', dir : '../tests/coverage/',file: 'coverage.xml' },
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment