Sets up gulp task for test
This commit is contained in:
30
test/karma.conf.js
Normal file
30
test/karma.conf.js
Normal 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'
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user