Skip to content

Instantly share code, notes, and snippets.

@ertrzyiks
Last active August 29, 2015 14:12
Show Gist options
  • Save ertrzyiks/c8763605282348756249 to your computer and use it in GitHub Desktop.
Save ertrzyiks/c8763605282348756249 to your computer and use it in GitHub Desktop.
Karma, requirejs, phantom for CI
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', 'requirejs'],
files: [
{pattern: 'src/app/**/*.js', included: false},
{pattern: 'test/**/*.spec.js', included: false},
'test/test-main.js'
],
exclude: [
'src/bower_components/somelib/test/*.js',
],
preprocessors: {
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['PhantomJS'],
plugins: [
'karma-phantomjs-launcher',
'karma-requirejs',
'karma-jasmine'
],
singleRun: true
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment