/client/app/bower_components/angular-schema-form-ui-select/karma.conf.js

https://gitlab.com/pgksunilkumar/final · JavaScript · 90 lines · 47 code · 20 blank · 23 comment · 0 complexity · 1291242466bf448c4463d2d6a9564ce2 MD5 · raw file

  1. module.exports = function(config) {
  2. config.set({
  3. // base path, that will be used to resolve files and exclude
  4. basePath: '.',
  5. // frameworks to use
  6. frameworks: ['mocha', 'chai-sinon'],
  7. // list of files / patterns to load in the browser
  8. files: [
  9. 'bower_components/jquery/dist/jquery.min.js',
  10. 'bower_components/underscore/underscore-min.js',
  11. 'bower_components/angular/angular.js',
  12. 'bower_components/angular-mocks/angular-mocks.js',
  13. 'bower_components/angular-sanitize/angular-sanitize.min.js',
  14. 'bower_components/angular-translate/angular-translate.min.js',
  15. 'bower_components/angular-ui-select/dist/select.min.js',
  16. 'bower_components/tv4/tv4.js',
  17. 'bower_components/objectpath/lib/ObjectPath.js',
  18. 'bower_components/angular-schema-form/dist/schema-form.js',
  19. 'bower_components/angular-schema-form/dist/bootstrap-decorator.min.js',
  20. 'bower_components/angular-underscore.js',
  21. 'src/*.js',
  22. 'src/**/*.html',
  23. 'test/tests.js'
  24. ],
  25. // list of files to exclude
  26. exclude: [
  27. ],
  28. // test results reporter to use
  29. // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
  30. reporters: ['progress', 'coverage', 'growler'],
  31. preprocessors: {
  32. 'src/**/*.js': ['coverage'],
  33. 'src/**/*.html': ['ng-html2js']
  34. },
  35. // optionally, configure the reporter
  36. coverageReporter: {
  37. type : 'lcov',
  38. dir : 'coverage/'
  39. },
  40. ngHtml2JsPreprocessor: {
  41. cacheIdFromPath: function(filepath) {
  42. return 'directives/decorators/bootstrap/uiselect/' + filepath.substr(4);
  43. },
  44. moduleName: 'templates'
  45. },
  46. // web server port
  47. port: 9876,
  48. // enable / disable colors in the output (reporters and logs)
  49. colors: true,
  50. // level of logging
  51. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  52. logLevel: config.LOG_INFO,
  53. // enable / disable watching file and executing tests whenever any file changes
  54. autoWatch: true,
  55. // Start these browsers, currently available:
  56. // - Chrome
  57. // - ChromeCanary
  58. // - Firefox
  59. // - Opera (has to be installed with `npm install karma-opera-launcher`)
  60. // - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
  61. // - PhantomJS
  62. // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
  63. browsers: ['PhantomJS'],
  64. // If browser does not capture in given timeout [ms], kill it
  65. captureTimeout: 60000,
  66. // Continuous Integration mode
  67. // if true, it capture browsers, run tests and exit
  68. singleRun: false
  69. });
  70. };