2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
module . exports = function ( config ) {
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
config . set ( {
// base path, that will be used to resolve files and exclude
basePath : '' ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
frameworks : [ 'jasmine' ] ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// list of files / patterns to load in the browser
files : [
2015-02-05 13:58:07 -08:00
'public/javascripts/vendor.js' , // need for jade definition...
2014-12-12 11:36:41 -08:00
'public/javascripts/whole-vendor.js' ,
2014-01-11 14:20:28 +05:30
'public/lib/ace/ace.js' ,
2014-06-07 18:15:57 -07:00
'public/javascripts/aether.js' ,
2014-12-12 11:36:41 -08:00
'public/javascripts/whole-app.js' ,
'public/javascripts/app/vendor/jasmine-mock-ajax.js' ,
'public/javascripts/app/tests.js' ,
2014-06-07 18:15:57 -07:00
'public/javascripts/run-tests.js'
2014-01-11 14:20:28 +05:30
] ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
preprocessors : {
'**/*.coffee' : 'coffee' ,
2014-12-12 11:36:41 -08:00
'**/javascripts/whole-app.js' : 'coverage'
2014-01-11 14:20:28 +05:30
} ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// list of files to exclude
exclude : [ ] ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// test results reporter to use
// possible values: 'dots', 'progress', 'junit'
reporters : [ 'progress' , 'coverage' ] ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// web server port
port : 9050 ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// cli runner port
runnerPort : 9051 ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// enable / disable colors in the output (reporters and logs)
colors : true ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
2014-08-15 12:28:32 -07:00
logLevel : config . LOG _ERROR , // doesn't seem to work?
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// enable / disable watching file and executing tests whenever any file changes
autoWatch : true ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers : [ 'Chrome' ] ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// If browser does not capture in given timeout [ms], kill it
captureTimeout : 5000 ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
// Continuous Integration mode
// if true, it capture browsers, run tests and executing
singleRun : false ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
coverageReporter : {
type : 'html' ,
dir : 'coverage/'
} ,
2014-01-03 10:32:13 -08:00
2014-01-11 14:20:28 +05:30
plugins : [
'karma-jasmine' ,
'karma-chrome-launcher' ,
'karma-phantomjs-launcher' ,
'karma-coffee-preprocessor' ,
2014-01-12 14:10:36 -05:00
'karma-coverage' ,
'karma-firefox-launcher'
2014-01-11 14:20:28 +05:30
]
} ) ;
2014-01-03 10:32:13 -08:00
2014-01-12 14:10:36 -05:00
} ;