karma.conf.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Karma configuration
  2. // http://karma-runner.github.io/0.12/config/configuration-file.html
  3. // Generated on 2015-06-05 using
  4. // generator-karma 0.9.0
  5. module.exports = function(config) {
  6. 'use strict';
  7. config.set({
  8. // enable / disable watching file and executing tests whenever any file changes
  9. autoWatch: true,
  10. // base path, that will be used to resolve files and exclude
  11. basePath: '../',
  12. // testing framework to use (jasmine/mocha/qunit/...)
  13. frameworks: ['jasmine'],
  14. // list of files / patterns to load in the browser
  15. files: [
  16. // bower:js
  17. 'bower_components/jquery/dist/jquery.js',
  18. 'bower_components/angular/angular.js',
  19. 'bower_components/bootstrap/dist/js/bootstrap.js',
  20. 'bower_components/angular-resource/angular-resource.js',
  21. 'bower_components/angular-route/angular-route.js',
  22. 'bower_components/Chart.js/Chart.js',
  23. 'bower_components/angular-chart.js/dist/angular-chart.js',
  24. 'bower_components/angular-mocks/angular-mocks.js',
  25. // endbower
  26. 'app/scripts/**/*.js',
  27. 'test/mock/**/*.js',
  28. 'test/spec/**/*.js'
  29. ],
  30. // list of files / patterns to exclude
  31. exclude: [
  32. ],
  33. // web server port
  34. port: 8080,
  35. // Start these browsers, currently available:
  36. // - Chrome
  37. // - ChromeCanary
  38. // - Firefox
  39. // - Opera
  40. // - Safari (only Mac)
  41. // - PhantomJS
  42. // - IE (only Windows)
  43. browsers: [
  44. 'PhantomJS'
  45. ],
  46. // Which plugins to enable
  47. plugins: [
  48. 'karma-phantomjs-launcher',
  49. 'karma-jasmine'
  50. ],
  51. // Continuous Integration mode
  52. // if true, it capture browsers, run tests and exit
  53. singleRun: false,
  54. colors: true,
  55. // level of logging
  56. // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
  57. logLevel: config.LOG_INFO,
  58. // Uncomment the following lines if you are using grunt's server to run the tests
  59. // proxies: {
  60. // '/': 'http://localhost:9000/'
  61. // },
  62. // URL root prevent conflicts with the site root
  63. // urlRoot: '_karma_'
  64. });
  65. };