App created during angularjs bootcamp.

karma.conf.js 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // Karma configuration
  2. // Generated on Tue Nov 11 2014 10:25:19 GMT-0600 (CST)
  3. module.exports = function(config) {
  4. config.set({
  5. // base path that will be used to resolve all patterns (eg. files, exclude)
  6. basePath: '',
  7. // frameworks to use
  8. // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
  9. frameworks: ['jasmine'],
  10. // list of files / patterns to load in the browser
  11. files: [
  12. 'www/lib/angular/angular.js',
  13. 'www/lib/angular-mocks/angular-mocks.js',
  14. 'www/lib/angular-route/angular-route.js',
  15. 'www/js/**/*.js',
  16. 'www/partials/*.html',
  17. 'tests/**/*.js'
  18. ],
  19. // list of files to exclude
  20. exclude: [
  21. ],
  22. // preprocess matching files before serving them to the browser
  23. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  24. preprocessors: {
  25. 'www/partials/*.html': 'ng-html2js'
  26. },
  27. ngHtml2JsPreprocessor: {
  28. stripPrefix: 'www/',
  29. moduleName: 'bootcampAppPartials'
  30. },
  31. // test results reporter to use
  32. // possible values: 'dots', 'progress'
  33. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  34. reporters: ['progress'],
  35. // web server port
  36. port: 9876,
  37. // enable / disable colors in the output (reporters and logs)
  38. colors: true,
  39. // level of logging
  40. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  41. logLevel: config.LOG_INFO,
  42. // enable / disable watching file and executing tests whenever any file changes
  43. autoWatch: true,
  44. // start these browsers
  45. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  46. browsers: ['Chrome'],
  47. // Continuous Integration mode
  48. // if true, Karma captures browsers, runs the tests and exits
  49. singleRun: false
  50. });
  51. };