Framework for building UIs for OpenStack projects dealing with complex input data
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

karma-unit.conf.js 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may
  5. * not use this file except in compliance with the License. You may obtain
  6. * a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations
  14. * under the License.
  15. */
  16. module.exports = function (config) {
  17. 'use strict';
  18. config.set({
  19. port: 9876,
  20. basePath: '',
  21. frameworks: ['jasmine-jquery','jasmine'],
  22. browsers: [ 'PhantomJS', 'Chrome', 'Firefox'],
  23. plugins: [
  24. 'karma-jasmine',
  25. 'karma-phantomjs-launcher',
  26. 'karma-chrome-launcher',
  27. 'karma-firefox-launcher',
  28. 'karma-ng-html2js-preprocessor',
  29. 'karma-jasmine-jquery'
  30. ],
  31. files: [
  32. 'bower_components/jquery/dist/jquery.min.js',
  33. 'bower_components/angular/angular.js',
  34. 'bower_components/angular-mocks/angular-mocks.js',
  35. 'merlin/static/merlin/js/libs/underscore/underscore-min.js',
  36. 'merlin/static/merlin/js/libs/js-yaml/dist/js-yaml.min.js',
  37. 'merlin/static/merlin/js/custom-libs/barricade.js',
  38. 'merlin/static/merlin/js/custom-libs/ui-bootstrap-tpls-0.12.1.js',
  39. // explicitly require first module definition file to avoid errors
  40. 'merlin/static/merlin/js/merlin.init.js',
  41. 'merlin/static/merlin/js/merlin.*.js',
  42. 'merlin/static/merlin/templates/**/*.html',
  43. 'merlin/test/js/*.spec.js',
  44. // explicitly require first module definition file to avoid errors
  45. 'extensions/mistral/static/mistral/js/mistral.init.js',
  46. 'extensions/mistral/static/mistral/js/mistral.*.js',
  47. 'extensions/mistral/test/js/*.spec.js'
  48. ],
  49. preprocessors: {
  50. 'merlin/static/merlin/templates/**/*.html': ['ng-html2js']
  51. },
  52. ngHtml2JsPreprocessor: {
  53. stripPrefix: 'merlin',
  54. moduleName: 'preprocessedTemplates'
  55. },
  56. exclude: [
  57. ],
  58. singleRun: true
  59. });
  60. };