codecombat/karma.conf.js

86 lines
2 KiB
JavaScript
Raw Normal View History

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