Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. // Karma configuration
  2. // http://karma-runner.github.io/0.10/config/configuration-file.html
  3.  
  4. module.exports = function(config) {
  5. config.set({
  6. // base path, that will be used to resolve files and exclude
  7. basePath: '',
  8.  
  9. // testing framework to use (jasmine/mocha/qunit/...)
  10. frameworks: ['jasmine'],
  11.  
  12. // list of files / patterns to load in the browser
  13. files: [
  14. 'app/bower_components/lodash/dist/lodash.underscore.min.js',
  15. 'app/bower_components/jquery/dist/jquery.js',
  16. 'https://maps.googleapis.com/maps/api/js?sensor=false&language=en',
  17. 'app/bower_components/angular/angular.js',
  18. 'app/bower_components/angular-mocks/angular-mocks.js',
  19. 'app/bower_components/angular-resource/angular-resource.js',
  20. 'app/bower_components/angular-cookies/angular-cookies.js',
  21. 'app/bower_components/angular-sanitize/angular-sanitize.js',
  22. 'app/bower_components/angular-route/angular-route.js',
  23. 'app/bower_components/angular-google-maps/dist/angular-google-maps.js',
  24. 'app/bower_components/angular-mocks/angular-mocks.js',
  25. // 'node_modules/underscore/underscore.js',
  26. 'app/scripts/*.js',
  27. 'app/scripts/**/*.js',
  28. // 'test/client/mock/**/*.js',
  29. // 'test/client/spec/**/*.js'
  30. ],
  31.  
  32. // list of files / patterns to exclude
  33. exclude: [],
  34.  
  35. // web server port
  36. port: 8080,
  37.  
  38. // level of logging
  39. // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
  40. logLevel: config.LOG_INFO,
  41.  
  42.  
  43. // enable / disable watching file and executing tests whenever any file changes
  44. autoWatch: false,
  45.  
  46.  
  47. // Start these browsers, currently available:
  48. // - Chrome
  49. // - ChromeCanary
  50. // - Firefox
  51. // - Opera
  52. // - Safari (only Mac)
  53. // - PhantomJS
  54. // - IE (only Windows)
  55. browsers: ['Chrome'],
  56.  
  57.  
  58. // Continuous Integration mode
  59. // if true, it capture browsers, run tests and exit
  60. singleRun: false
  61. });
  62. };
  63.  
  64. // Test settings
  65. karma: {
  66. unit: {
  67. configFile: 'karma.conf.js',
  68. singleRun: true
  69. }
  70. },
  71.  
  72. mochaTest: {
  73. options: {
  74. reporter: 'spec'
  75. },
  76. src: ['test/server/**/*.js']
  77. },
  78.  
  79. env: {
  80. test: {
  81. NODE_ENV: 'test'
  82. }
  83. }
  84. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement