Created
October 2, 2013 08:59
-
-
Save nickknissen/6790967 to your computer and use it in GitHub Desktop.
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
'use strict'; | |
module.exports = function(config) { | |
config.set({ | |
// base path, that will be used to resolve files and exclude | |
basePath: '../../', | |
preprocessors: { | |
'**/*.html': ['ng-html2js'] | |
}, | |
// list of files / patterns to load in the browser | |
files: [ | |
// jQuery is used to aid testing directives | |
'spec/vendor/jquery.js', | |
// Angular | |
'vendor/angular/angular.js', | |
'vendor/angular/angular-resource.js', | |
'vendor/angular/i18n/angular-locale_en-gb.js', | |
'spec/vendor/angular/angular-mocks.js', | |
// Vendor | |
'vendor/lib/lodash.custom.js', | |
'vendor/lib/eddy.js', | |
'vendor/lib/redefine.js', | |
'vendor/**/*.js', | |
// App | |
'app/**/*.js', | |
// Specs helpers | |
'spec/helpers/**/*.js', | |
// Specs | |
'spec/unit/**/*.js', | |
'app/**/*.html' | |
], | |
plugins: [ | |
'karma-*', | |
'karma-coverage', | |
'karma-growl-reporter', | |
'karma-junit-reporter', | |
'karma-ng-html2js-preprocessor', | |
'karma-phantomjs-launcher', | |
'karma-opera-launcher', | |
'karma-firefox-launcher', | |
'karma-chrome-launcher' | |
], | |
// Start these browsers, currently available: | |
// - Chrome | |
// - ChromeCanary | |
// - Firefox | |
// - Opera | |
// - Safari (only Mac) | |
// - PhantomJS | |
// - IE (only Windows) | |
browsers: ['PhantomJS'], | |
frameworks: ['jasmine'], | |
// test results reporter to use | |
// possible values: 'dots', 'progress', 'junit' | |
reporters: ['dots', 'growl'], | |
reportSlowerThan: 50, | |
// enable / disable watching file and executing tests | |
// whenever any file changes | |
autoWatch: true, | |
// 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