Skip to content

Instantly share code, notes, and snippets.

@matthiasg
Created June 3, 2014 15:08
Show Gist options
  • Save matthiasg/5f8c5081c71872e4b3a3 to your computer and use it in GitHub Desktop.
Save matthiasg/5f8c5081c71872e4b3a3 to your computer and use it in GitHub Desktop.
client.conf.js
'use strict';
// Karma configuration
// Generated on Fri Mar 14 2014 13:38:47 GMT+0100 (W. Europe Standard Time)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '../..',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha','chai'],
// list of files / patterns to load in the browser
files: [
'webapp/js/modernizr-2.6.2.min.js',
'webapp/js/jquery-2.0.3.min.js',
'webapp/js/bootstrap.min.js',
'webapp/js/angular.js',
'webapp/js/angular-route.js',
'webapp/js/angular-resource.js',
'webapp/js/angular-animate.js',
'webapp/js/angular-mocks.js',
'webapp/js/ngProgress.min.js',
'webapp/bower_components/momentjs/min/moment.min.js',
'webapp/bower_components/angular-moment/angular-moment.min.js',
'webapp/bower_components/angular-ui-layout/ui-layout.js',
'webapp/js/hotkeys.min.js',
'webapp/js/ui-utils.js',
'webapp/build/build.js',
'webapp/main.js',
'webapp/js/ui-ace.js',
'test/client/**/*.spec.coffee'
],
// list of files to exclude
exclude: [
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'test/client/**/*.spec.coffee': ['coffee']
},
coffeePreprocessor: {
// options passed to the coffee compiler
options: {
bare: true,
sourceMap: true
},
// transforming the filenames
transformPath: function(path) {
return path.replace(/\.coffee$/, '.js');
}
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['dots'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_DEBUG,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
autoWatchBatchDelay: 1000,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
//browsers: ['Chrome', 'IE', 'PhantomJS'],
browsers: ['Chrome'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment