Created
October 3, 2014 01:52
-
-
Save dac09/05389df832948cceb8ea to your computer and use it in GitHub Desktop.
Karma config with karma-html-reporter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Karma configuration | |
// http://karma-runner.github.io/0.10/config/configuration-file.html | |
module.exports = function(config) { | |
config.set({ | |
// base path, that will be used to resolve files and exclude | |
basePath: '', | |
// testing framework to use (jasmine/mocha/qunit/...) | |
frameworks: ['jasmine'], | |
// list of files / patterns to load in the browser | |
files: [ | |
'public/bower_components/angular/angular.js', | |
'public/bower_components/angular-mocks/angular-mocks.js', | |
'public/bower_components/angular-resource/angular-resource.js', | |
'public/bower_components/angular-cookies/angular-cookies.js', | |
'public/bower_components/angular-sanitize/angular-sanitize.js', | |
'public/bower_components/angular-route/angular-route.js', | |
'public/bower_components/jquery/dist/jquery.js', | |
'public/bower_components/modernizr/modernizr.js', | |
'public/scripts/*.js', | |
'public/scripts/**/*.js', | |
'test/angular/**/*.js' | |
], | |
reporters: ['progress', 'html'], | |
// the default configuration | |
htmlReporter: { | |
outputDir: 'karma_html', | |
}, | |
// list of files / patterns to exclude | |
exclude: [], | |
// web server port | |
port: 8080, | |
// level of logging | |
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG | |
logLevel: config.LOG_INFO, | |
// enable / disable watching file and executing tests whenever any file changes | |
autoWatch: false, | |
// Start these browsers, currently available: | |
// - Chrome | |
// - ChromeCanary | |
// - Firefox | |
// - Opera | |
// - Safari (only Mac) | |
// - PhantomJS | |
// - IE (only Windows) | |
browsers: ['PhantomJS','Chrome','Safari', 'Firefox'], | |
// Continuous Integration mode | |
// if true, it capture browsers, run tests and exit | |
singleRun: true | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment