Sets up gulp task for test

This commit is contained in:
2016-02-11 14:25:08 +01:00
parent f291e0f215
commit 15974168f5
3 changed files with 53 additions and 0 deletions

30
test/karma.conf.js Normal file
View File

@@ -0,0 +1,30 @@
module.exports = function(config) {
config.set({
basepath: './',
files : [
'static/bower_components/angular/angular.js',
'static/bower_components/angular-route/angular-route.js',
'static/bower_components/angular-mocks/angular-mocks.js',
'static/js/**/*.js',
'test/specs/**/*.js'
],
autoWatch: true,
frameworks: ['jasmine'],
browser: ['Chrome'],
plugins : [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-jasmine',
'karma-junit-reporter'
],
junitReporter : {
outputFile: 'test_out/unit.xml',
suite: 'unit'
}
});
};