karma.conf.js 1003 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Karma configuration file
  2. // See http://karma-runner.github.io/0.10/config/configuration-file.html
  3. module.exports = function (config) {
  4. config.set({
  5. basePath: '',
  6. frameworks: ['jasmine'],
  7. // list of files / patterns to load in the browser
  8. files: [
  9. // libraries
  10. 'bower_components/lodash/lodash.js',
  11. 'bower_components/angular/angular.js',
  12. 'bower_components/angular-mocks/angular-mocks.js',
  13. // directive
  14. './dist/ng-table.js',
  15. // tests
  16. 'test/*.js'
  17. //'test/tableParamsSpec.js'
  18. //'test/tableControllerSpec.js'
  19. ],
  20. // generate js files from html templates
  21. preprocessors: {
  22. '*.js': 'coverage'
  23. },
  24. reporters: ['progress', 'coverage'],
  25. autoWatch: true,
  26. browsers: ['Chrome'],
  27. coverageReporter: {
  28. type: 'lcov',
  29. dir: 'out/coverage'
  30. }
  31. });
  32. };