karma.conf.js 642 B

12345678910111213141516171819202122232425262728293031323334
  1. //jshint strict: false
  2. module.exports = function(config) {
  3. config.set({
  4. basePath: './app',
  5. files: [
  6. 'bower_components/angular/angular.js',
  7. 'bower_components/angular-route/angular-route.js',
  8. 'bower_components/angular-mocks/angular-mocks.js',
  9. 'components/**/*.js',
  10. 'view*/**/*.js'
  11. ],
  12. autoWatch: true,
  13. frameworks: ['jasmine'],
  14. browsers: ['Chrome'],
  15. plugins: [
  16. 'karma-chrome-launcher',
  17. 'karma-firefox-launcher',
  18. 'karma-jasmine',
  19. 'karma-junit-reporter'
  20. ],
  21. junitReporter: {
  22. outputFile: 'test_out/unit.xml',
  23. suite: 'unit'
  24. }
  25. });
  26. };