karma.conf.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // Karma configuration
  2. // Generated on Fri Aug 09 2013 14:14:35 GMT-0500 (CDT)
  3. module.exports = function(config) {
  4. config.set({
  5. // base path, that will be used to resolve files and exclude
  6. basePath: '',
  7. frameworks: ["jasmine"],
  8. // list of files / patterns to load in the browser
  9. files: [
  10. 'https://ajax.googleapis.com/ajax/libs/angularjs/1.3.12/angular.js',
  11. 'https://ajax.googleapis.com/ajax/libs/angularjs/1.3.12/angular-mocks.js',
  12. 'http://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.3.0/lodash.js',
  13. 'src/restangular.js',
  14. 'test/*.js'
  15. ],
  16. // list of files to exclude
  17. exclude: [
  18. ],
  19. // test results reporter to use
  20. // possible values: 'dots', 'progress', 'junit'
  21. reporters: ['mocha'],
  22. // web server port
  23. port: 9876,
  24. // cli runner port
  25. runnerPort: 9100,
  26. // enable / disable colors in the output (reporters and logs)
  27. colors: true,
  28. // level of logging
  29. // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
  30. logLevel: config.LOG_INFO,
  31. // enable / disable watching file and executing tests whenever any file changes
  32. autoWatch: true,
  33. // Start these browsers, currently available:
  34. // - Chrome
  35. // - ChromeCanary
  36. // - Firefox
  37. // - Opera
  38. // - Safari (only Mac)
  39. // - PhantomJS
  40. // - IE (only Windows)
  41. browsers: ['PhantomJS'],
  42. // If browser does not capture in given timeout [ms], kill it
  43. captureTimeout: 60000,
  44. // Continuous Integration mode
  45. // if true, it capture browsers, run tests and exit
  46. singleRun: false
  47. });
  48. };