karma.conf.js 954 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/angular/angular.js',
  11. 'bower_components/angular-mocks/angular-mocks.js',
  12. // directive
  13. './dist/ng-table.js',
  14. // tests
  15. 'test/*.js'
  16. //'test/tableParamsSpec.js'
  17. //'test/tableControllerSpec.js'
  18. ],
  19. // generate js files from html templates
  20. preprocessors: {
  21. '*.js': 'coverage'
  22. },
  23. reporters: ['progress', 'coverage'],
  24. autoWatch: true,
  25. browsers: ['Chrome'],
  26. coverageReporter: {
  27. type: 'lcov',
  28. dir: 'out/coverage'
  29. }
  30. });
  31. };